OFFSET
1,1
COMMENTS
EXAMPLE
278 is a member of this sequence because 278123456789 is prime.
MATHEMATICA
Select[Range[700], PrimeQ[FromDigits[Flatten[{IntegerDigits[#], IntegerDigits[123456789]}]]] &] (* Vincenzo Librandi, Apr 28 2015 *)
PROG
(Python)
from sympy import isprime
{print(n, end=', ') for n in range(1, 10**3) if isprime(int(str(n)+'123456789'))}
## Simplified by Derek Orr, Apr 28 2015
(PARI) for(n=1, 10^3, if(isprime(eval(concat(Str(n), "123456789"))), print1(n, ", "))) \\ Derek Orr, Apr 28 2015
(Magma) [n: n in [0..700] | IsPrime(Seqint([9..1 by -1] cat Intseq(n)))]; // Vincenzo Librandi, Apr 28 2015
(Sage) [n for n in (1..700) if is_prime(n*10^9+123456789)] # Bruno Berselli, 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