cp's OEIS Frontend

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.

A208572 Smallest twin prime > 2^n.

Original entry on oeis.org

3, 5, 11, 17, 41, 71, 137, 269, 521, 1031, 2081, 4127, 8219, 16451, 32801, 65537, 131111, 262151, 524351, 1048889, 2097257, 4194581, 8388617, 16777289, 33554501, 67109321, 134217779, 268435577, 536871017, 1073741831, 2147483867, 4294967387
Offset: 1

Views

Author

Washington Bomfim, Feb 28 2012

Keywords

Examples

			For n=1 the smallest twin prime > 2^n is 3.
		

Crossrefs

Cf. A001359, A208574, A173937 (a(n) - 2^n).

Programs

  • Mathematica
    stp[n_]:=Module[{t=NextPrime[n]},While[!PrimeQ[t+2],t=NextPrime[t]];t]; Table[stp[2^i],{i,40}] (* Harvey P. Dale, Aug 24 2013 *)
  • PARI
    a(n)=my(t=2^n);while(!ispseudoprime(t+2),t=nextprime(t+1));t \\ Charles R Greathouse IV, Jun 21 2012