OFFSET
1,1
COMMENTS
p and p+20 are not necessarily consecutive primes: (887, 907) is the first pair of consecutive primes that belongs to the sequence.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
a(2n+1) = A153419(n+1).
EXAMPLE
The prime pairs are (3, 23), (11, 31), (17, 37) etc.
MATHEMATICA
Flatten[{#, # + 20}&/@Select[Prime[Range[200]], PrimeQ[# + 20] &]]
PROG
(Magma) &cat [[p, p+20]: p in PrimesUpTo(1000) | IsPrime(p+20)];
(Python)
from gmpy2 import is_prime
for n in range(1000):
if(is_prime(n) and is_prime(n+20)):
print('{}, {}'.format(n, n+20), end=', ')
# Soumil Mandal, May 14 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, May 07 2016
EXTENSIONS
Edited by Bruno Berselli, May 12 2016
STATUS
approved