OFFSET
1,1
COMMENTS
Primes in A232727.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
59 is a member of this sequence because 59 is prime and 59123456789 is prime.
MATHEMATICA
With[{r=Range[1, 9]}, Select[Prime[Range[500]], PrimeQ[FromDigits[Join[IntegerDigits[#], r]]]&]] (* Vincenzo Librandi, Apr 28 2015 *)
Select[Prime[Range[500]], PrimeQ[#*10^9+123456789]&] (* Harvey P. Dale, Apr 01 2018 *)
PROG
(Python)
from sympy import prime, isprime
{print(prime(n), end=', ') for n in range(1, 10**3) if isprime(int(str(prime(n))+'123456789'))}
## Simplified by Derek Orr, Apr 28 2015
(PARI) forprime(p=1, 10^4, if(isprime(eval(concat(Str(p), "123456789"))), print1(p, ", "))) \\ Derek Orr, Apr 28 2015
(Magma) [p: p in PrimesUpTo(5000) | IsPrime(Seqint(Intseq(123456789) cat Intseq(p)))]; // Vincenzo Librandi, Apr 28 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Derek Orr, Nov 29 2013
EXTENSIONS
More terms from Derek Orr, Apr 28 2015
STATUS
approved