OFFSET
1,1
COMMENTS
The integer square root of an integer x >= 0 can be defined as floor(sqrt(x)) and the remainder of this as x - (floor(sqrt(x)))^2.
LINKS
Wikipedia, Integer square root
MATHEMATICA
f[n_]:=n-(Floor[Sqrt[n]])^2; lst={}; Do[p=Prime[n]; If[PrimeQ[f[p]], AppendTo[lst, p]], {n, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 25 2010 *)
PROG
(PARI) { forprime(p=2, 2000, isr = sqrtint(p); Rem = p - isr*isr; if (isprime(Rem), print1(p, ", ") ) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Harry J. Smith, Dec 07 2007
STATUS
approved