can u please give some inputs for which this code is giving WA
[1]
[1]: http://ideone.com/6XWyVR
can u please give some inputs for which this code is giving WA
[1]
[1]: http://ideone.com/6XWyVR
Your Code
gives time limit exceeds for N = 350 and each password = max prime no = 9999991
its ans must be 81410805000
Hello,
Apart from the aforementioned issue, 2 must be considered as a prime number, not as an even one.
Also, odd numbers can’t be prime either, make sure you are doing this check… These 2 details costed me several WA submissions before the AC one, even when sample input was correct…
Best regards,
Bruno