Find the sum of all the prime numbers less than 1000 that come just before a perfect square
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let a prime no. p be there such that: p=x^2-1 = (x+1)(x-1)
So, there are two factors , however as p is prime no. one of them must be equal to one.
If x+1=1, => x=0 , =>p=(-1) [Not possible]
If x-1=1, => x=2, =>p=3 [Only possible solution]
3 is the only solution and as all the no. less than 1000 are asked, ans is 3.