OFFSET
1,1
COMMENTS
Number of terms < 10^k: 0, 3, 12, 37, 159, 789, 3960, 21708, 129910, ..., . - Robert G. Wilson v, Jun 20 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
p=13; p+10=23 (is prime), p+100=113 (is prime), p+1000=1013 (is prime).
MAPLE
select(t -> isprime(t+1000) and isprime(t+100) and isprime(t+10) and isprime(t), [seq(i, i=7..20000, 6)]); # Robert Israel, Jun 20 2018
MATHEMATICA
Select[Prime[Range[10000]], PrimeQ[# + 10] && PrimeQ[# + 100] && PrimeQ[# + 1000] &] (* Robert Price, Apr 10 2016 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (isprime(p+10) && isprime(p+100) && isprime(p+1000), print1(p, ", "))); \\ Michel Marcus, Apr 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Emre APARI, Apr 10 2016
STATUS
approved