login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A167735
Primes that becomes a square when prefixed with a 2.
8
5, 89, 401, 601, 809, 1609, 2801, 4649, 5281, 6569, 9241, 9929, 14369, 18089, 19961, 21841, 27529, 33289, 41081, 43049, 51001, 61121, 67289, 73529, 79841, 84089, 92681, 94849
OFFSET
1,1
LINKS
Vincenzo Librandi and David A. Corneth, Table of n, a(n) for n = 1..10488 (First 222 terms from Vincenzo Librandi)
MATHEMATICA
Select[Prime[Range[10000]], IntegerQ[Sqrt[FromDigits[Join[{2}, IntegerDigits[#]]]]]&] (* Harvey P. Dale, Dec 16 2010 *)
PROG
(PARI) \\ terms upto 10^n
upto(n) = {my(sqrt21 = sqrt(2.1), sqrt30 = sqrt(3.0), r, t=0);
for(k=2, n, for(j = ceil((sqrt21 * sqrt(10^k))), floor(sqrt30 * sqrt(10^k)),
r = j^2%10^k; if(isprime(r), t++; print1(r", ")))); t} \\ David A. Corneth, Jun 24 2016
KEYWORD
base,nonn
AUTHOR
Claudio Meller, Nov 10 2009
STATUS
approved