We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #50: Consecutive prime sum
Project Euler #50: Consecutive prime sum
Sort by
recency
|
31 Discussions
|
Please Login in order to post a comment
python3
I get everything but test case 9. Curriously, 9 sumtimes returns "Wrong answer" and other times returns "Runtime Error." Has anyone else run into this?
For some reason hackerrank is failing to post my comment with the code pasted.
I tried in cpp it works and passed all testcases...
This is my python solution for this question but only 5 testcases will be passed......
java code
import java.util.Scanner;
public class Solution {
}
Hmmm... Test case 9 failed, the answer is wrong. What is this? BTW what is the correct answer for 2: 2 1? @shashank21j
Update: Never mind, I've found out the issue, I had a bug in my binary search implementaion.