OFFSET
1,1
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
Partition primes in triples starting with 5: {5, 7, 11}, {13, 17, 19}, {23, 29, 31}, {37, 41, 43}, {47, 53, 59}, {61, 67, 71}, {73, 79, 83}, {89, 97, 101}, {103, 107, 109}. Sequence gives differences between lesser and larger primes in triples.
MATHEMATICA
#[[3]]-#[[1]]&/@Partition[Prime[Range[3, 300]], 3] (* Harvey P. Dale, Jan 12 2011 *)
PROG
(PARI) a(n) = prime(3*n+2) - prime(3*n); \\ Michel Marcus, Oct 05 2013
(Magma) [NthPrime(3*n+2) - NthPrime(3*n): n in [1..80]]; // G. C. Greubel, May 19 2019
(Sage) [nth_prime(3*n+2) - nth_prime(3*n) for n in (1..80)] # G. C. Greubel, May 19 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Oct 05 2003
EXTENSIONS
New name from Michel Marcus, Oct 05 2013
STATUS
approved