Ad
  • Custom User Avatar

    Your code isn't fast enough, you're using too many cycles for instance, you're checking all even numbers less than or equal num/2 when testing if it's even already tells you it's not a prime number. It's a problem with your code, reduce the number of cycles of your loop. num/2 is too big.