OFFSET
1,1
COMMENTS
Numbers n such that n and n+5 are both in A002822.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
# From R. J. Mathar, Mar 01 2010: (Start)
isA002822 := proc(n)
if isprime(6*n-1) and isprime(6*n+1) then
true;
else
false;
end if;
end proc:
isA173088 := proc(n)
isA002822(n) and isA002822(n+5) ;
end proc:
for n from 1 to 1700 do
if isA173088(n) then
printf("%d, ", n) ;
end if;
end do ; # (End)
MATHEMATICA
Select[Range[2000], And @@ PrimeQ[6*# + {-1, 1, 29, 31}] &] (* Amiram Eldar, Jan 01 2020 *)
PROG
(Magma) A002822:=[ k: k in [1..3000] | IsPrime(6*k-1) and IsPrime(6*k+1) ]; [ p: p in A002822 | p+5 in A002822 ]; // Klaus Brockhaus, Mar 01 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Feb 14 2010
EXTENSIONS
Edited by Charles R Greathouse IV, Mar 24 2010
STATUS
approved