I am trying to write the code for PRIME1 problem here http://www.spoj.pl/problems/PRIME1 But I am getting a time limit exceeded error. I have employed the most basic algorithm for generating prime numbers. What is the faster methods? Any references?
↧