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 #187: Semiprimes
Project Euler #187: Semiprimes
Sort by
recency
|
24 Discussions
|
Please Login in order to post a comment
Here are a few test cases to evaluate your code's effectiveness.
.
I was looking my code for many minutes only to realize that I forgot to substract 1 because of the condition of < N xD Anyway, I used Meissel-Lehmer algorithm to solve this, pretty simple if you already have a function to compute pi(n) efficiently:
I am getting runtime error when using Go for 2 test cases: 1 & 22. I tested for 20 test cases in the custom input box and I am getting run time error. In my local machine, there is no runtime error. Is there any specific reason for this?
Where can I find the input and expected output for each test case?
why 5 is semiprime? 5 = 5*1 is only one single prime number, not two