top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Find the sum of all the prime numbers larger than 2 less than 10^12 that are 1 more than a perfect square.

+1 vote
362 views

Find the sum of all the prime numbers larger than 2 less than 10^12 that are 1 more than a perfect square. Because the number can get pretty big provide the answer mod 1007.

Note: Problem shouldn't take much more than one minute if your answer is taking too long consider looking for optimizations.

posted Oct 6, 2018 by anonymous

Share this puzzle
Facebook Share Button Twitter Share Button LinkedIn Share Button
is the answer 477?

1 Answer

0 votes

I have got the answer as 477.

answer Oct 7, 2018 by Tejas Naik
can u explain how?
I wrote a c++ program for it.
...