can u please give some inputs for which this code is giving WACODE asked 15 Jan '13, 16:20

Your Code gives time limit exceeds for N = 350 and each password = max prime no = 9999991 its ans must be 81410805000 answered 15 Jan '13, 16:28

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 answered 15 Jan '13, 16:33
