A088681 Duplicate of A078584.
2, 2, 2, 6, 6, 2, 6, 2, 4, 6, 6, 4, 4, 4, 4, 2, 2, 6, 6, 2, 2, 2, 12, 2, 6, 10, 6, 2, 4, 10, 4, 4, 6, 2
Offset: 0
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
Table[Prime[2n + 1] - Prime[2n], {n, 100}] (* Robert G. Wilson v, May 29 2004 *) Differences/@Partition[Prime[Range[2,200]],2]//Flatten (* Harvey P. Dale, Sep 22 2019 *)
[NthPrime(3*n+2) - NthPrime(3*n): n in [1..80]]; // G. C. Greubel, May 19 2019
#[[3]]-#[[1]]&/@Partition[Prime[Range[3,300]],3] (* Harvey P. Dale, Jan 12 2011 *)
a(n) = prime(3*n+2) - prime(3*n); \\ Michel Marcus, Oct 05 2013
[nth_prime(3*n+2) - nth_prime(3*n) for n in (1..80)] # G. C. Greubel, May 19 2019
Primes:= select(isprime, [2,seq(i,i=3..10000)]): seq(Primes[3*n+3]-Primes[3*n+1],n=1..(nops(Primes)-3)/3); # Robert Israel, Dec 15 2019
Last[#]-First[#]&/@Partition[Prime[Range[4,250]],3] (* Harvey P. Dale, Sep 06 2011 *)
Table[Prime[3n+1]-Prime[3n-1],{n,80}] (* Harvey P. Dale, Jul 28 2020 *)
a(n) = prime(3*n+1) - prime(3*n-1); \\ Michel Marcus, Oct 05 2013
seq((2*n-1)$(ithprime(2*n)-ithprime(2*n-1)),n=1..30); # Robert Israel, Feb 13 2019
Select[PrimePi[Range[300]],OddQ] (* Harvey P. Dale, Dec 24 2014 *)
Comments