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.

Showing 1-2 of 2 results.

A094489 Primes p such that 2^j+p^j are primes for j=0,1,4,32.

Original entry on oeis.org

59, 5417, 19079, 33827, 136949, 181871, 242519, 284897, 421607, 452537, 552401, 598187, 962681, 1068251, 1081979, 1163231, 1317761, 1760279, 1801361, 1891499, 1895081, 1919459, 2056907, 2131601, 2427461, 2557601, 2579177, 2826737
Offset: 1

Views

Author

Labos Elemer, Jun 01 2004

Keywords

Examples

			For j=0 1+1=2 is prime; also terms should be lesser-twin-primes
because of p^1+2^1=p+2=prime; 3rd and 4th conditions are as
follows: prime=p^4+16 and prime=2^32+p^32.
		

Crossrefs

Programs

  • Mathematica
    {ta=Table[0, {100}], u=1}; Do[s0=2;s1=Prime[j]+2;s2=4+Prime[j]^2;s8=2^32+Prime[j]^32; If[PrimeQ[s0]&&PrimeQ[s1]&&PrimeQ[s2]&&PrimeQ[s8], Print[{j, Prime[j]}];ta[[u]]=Prime[j];u=u+1], {j, 1, 1000000}]
    Select[Prime[Range[210000]],AllTrue[{2+#,16+#^4,2^32+#^32},PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jun 13 2015 *)

A094490 Primes p such that 2^j+p^j are primes for j=0,2,4,64.

Original entry on oeis.org

37, 1423, 8537, 61333, 397963, 419927, 699217, 1151603, 1156823, 1210793, 1746923, 1809163, 1915477, 2012113, 2713127, 3617683, 4001567, 4192033, 4760117, 4768133, 5099623, 5432153, 5801737, 5909737, 5924833, 6118157
Offset: 1

Views

Author

Labos Elemer, Jun 01 2004

Keywords

Examples

			For j=0 1+1=2 is prime; other conditions are:
because of p^2+4==prime; 3rd and 4th conditions are as
follows: prime=p^4+16 and prime=2^64+p^64.
		

Crossrefs

Programs

  • Mathematica
    {ta=Table[0, {100}], u=1}; Do[s0=2;s2=4+Prime[j]^2;s4=16+Prime[j]^4;s64=2^64+Prime[j]^64 If[PrimeQ[s0]&&PrimeQ[s2]&&PrimeQ[s4]&&PrimeQ[s64], Print[{j, Prime[j]}];ta[[u]]=Prime[j];u=u+1], {j, 1, 1000000}]
    Select[Prime[Range[500000]],AllTrue[Table[2^j+#^j,{j,{0,2,4,64}}], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 29 2015 *)
Showing 1-2 of 2 results.