I was wondering if you guys could look it over and see if there is anything wrong with it or if there can be any improvements made to it. Finding the prime numbers was quite easy but I had a hard time dealing with being able to accept the correct input and storing it correctly. Anyways here is the code look forward to any and all criticism.
The code runs fine on codeblocks but when I submit it, it fails because it goes over the 6 second time limit. They are using some ancient machines to do the calculations :(. So basically I'm looking for a way to speed up the program and increase its performance.
@StillLearning Ya I see what you mean, I just submitted your code for the problem and it exceeded the time limit for me also. Though I don't think I will be able to help any other then what naraku posted.
Thanks for linking that site though seems like it has some interesting problems on it and probably will do a few.
Wish ya the best of luck with it and I'm sure some of the other users will be able to figure it out for ya.