OFFSET
1,1
COMMENTS
A134120 is a subsequence of this sequence.
LINKS
Karl V. Keller, Jr., Table of n, a(n) for n = 1..10000
EXAMPLE
5 is a term because 5 + 42 = 47 is also prime.
11 is a term because 11 + 42 = 53 is also prime.
MAPLE
A271982:=n->`if`(isprime(n) and isprime(n+42), n, NULL): seq(A271982(n), n=1..10^3); # Wesley Ivan Hurt, Feb 12 2017
MATHEMATICA
Select[Prime@ Range@ 90, PrimeQ[# + 42] &] (* Michael De Vlieger, Apr 18 2016 *)
PROG
(Python)
from sympy import isprime
for i in range(3, 2001, 2):
if isprime(i) and isprime(i+42): print (i, end=', ')
(PARI) lista(nn) = forprime(p=2, nn, if (isprime(p+42), print1(p, ", "))); \\ Michel Marcus, Apr 19 2016
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Karl V. Keller, Jr., Apr 17 2016
STATUS
approved