Getting WA on Orac and Factors (codeforces #641 div2-A)

getting WA on some big number in case #2 can’t find the error. please, help!

Thank you.

One immediate mistake I can see is that prime numbers larger than MAXN have mindiv[i]=0.

thanks for the speedy reply but still getting WA on same case.

Fixed your Sieve

2 Likes