OFFSET
1,2
COMMENTS
1234567890 is the first pandigital number with digits in order.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
EXAMPLE
169 = 13^2 and appears in the sequence because 169 + 1234567890 = 1234568059, which is prime.
1681 = 41^2 and appears in the sequence because 1681 + 1234567890 = 1234569571, which is prime.
625 = 25^2 but is not included in the sequence since 625 + 1234567890 = 1234568515 = (5)*(246913703), which is not prime.
MAPLE
KD := proc() local a, s; s:=n^2; a:=s+1234567890; if isprime(a) then RETURN (s); fi; end: seq(KD(), n=1..2000);
MATHEMATICA
(* For the b-file *) c = 0; s = n^2; a = s + 1234567890; Do[If[PrimeQ[a], c++; Print[c, " ", s]], {n, 4*10^5}] (* Bajpai *)
Select[Range[1000]^2, PrimeQ[# + 1234567890] &] (* Alonso del Arte, Apr 25 2014 *)
CROSSREFS
KEYWORD
nonn,less
AUTHOR
K. D. Bajpai, Apr 25 2014
STATUS
approved