With ancient generic drugs the prices may fall so low that maintenance of market presence becomes unprofitable. So some price adjustments are justifiable.
Pyrimethamine has been available from 1953 (https://en.wikipedia.org/wiki/Pyrimethamine). How could that qualify for a patent in the USA? I would think there are more persons than Martin Shkreli who should be investigated or shamed.