A030459 Prime p concatenated with next prime is also prime.
2, 31, 83, 151, 157, 167, 199, 233, 251, 257, 263, 271, 331, 353, 373, 433, 467, 509, 523, 541, 601, 653, 661, 677, 727, 941, 971, 1013, 1033, 1181, 1187, 1201, 1223, 1259, 1367, 1453, 1459, 1657, 1669, 1709, 1741, 1861, 1973, 2069, 2161
Offset: 1
Links
- M. F. Hasler and Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 4110 terms from Hasler)
Programs
-
Mathematica
Select[Prime[Range[500]],PrimeQ[FromDigits[Join[IntegerDigits[#], IntegerDigits[ NextPrime[#]]]]]&] (* Harvey P. Dale, Jun 20 2011 *)
-
PARI
o=2;forprime(p=3,1e4, isprime(eval(Str(o,o=p))) & print1(precprime(p-1)",")) \\ M. F. Hasler, Feb 06 2011
Comments