Generate as many prime numbers as user desires

I'm learning programming in C. I made a few small changes. I hope you'd like it!