Hello, Everyboy. Can someone explain why I’m getting WA? Please.
problem: https://www.spoj.com/problems/PRIME1/
Code: https://ideone.com/3IFJo5
Thanks in advance.
Your prime test consists of numbers that aren’t divisible by 2, 3 or 5. Seriously?
Try this 1 40 50
Hint 49 isn’t prime,