Yesterday nigth the judge's disks were full. Now it is working for me.Larry wrote:It's been half a day, so I figure I'll bring it to someone's attention...
Saludos,
HoraPe
Yesterday nigth the judge's disks were full. Now it is working for me.Larry wrote:It's been half a day, so I figure I'll bring it to someone's attention...
That's a really slow algorithm. Read on sieve.kiha wrote:* Of course, for every n > 4 , I check if any prime i from 2 to sqrt (n) divides n , until I have found one that does or i have reached sqrt (n) -- can you think of any better algorithm?