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.

Previous Showing 11-15 of 15 results.

A155847 Primes of the form 2^p-p*q where p is prime,q=7.

Original entry on oeis.org

-13, -3, 79, 8101
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    q=7;lst={};Do[p=Prime[n];If[PrimeQ[p=2^p-p*q],AppendTo[lst,p]],{n,5!}];lst

A358079 Primes that can be written as 2^x + p where p is a prime and x is a multiple of p.

Original entry on oeis.org

11, 37, 67, 4099, 32771, 262147, 268435463, 1073741827, 36028797018963979, 18889465931478580854821, 151115727451828646838283, 19342813113834066795298819, 618970019642690137449562201, 316912650057057350374175801351, 85070591730234615865843651857942052871
Offset: 1

Views

Author

J. M. Bergot and Robert Israel, Oct 30 2022

Keywords

Examples

			a(3) = 67 is a term because 67 = 2^6 + 3 where 67 and 3 are prime and 6 is divisible by 3.
		

Crossrefs

Contains A057664 and A228032.
Cf. A358087.

Programs

  • Maple
    R:= NULL: count:= 0:
    for k from 1 while count < 15 do
      P:= sort(convert(numtheory:-factorset(k),list));
      for p in P do
        x:= 2^k+p;
        if isprime(x) then R:= R,x; count:= count+1; fi
    od od:R;

A100339 Primes of the form 2^q + q where q is not a prime.

Original entry on oeis.org

3, 521, 32783, 549755813927, 37778931862957161709643, 2417851639229258349412433
Offset: 1

Views

Author

Cino Hilliard, Jan 11 2005

Keywords

Comments

The next term is 2^735+735 = 18073..35103, 222 digits long.

Examples

			For q = 9, 2^9+9 = 521 which is prime.
		

Crossrefs

Programs

  • Mathematica
    Select[Table[If[!PrimeQ[n],2^n+n,0],{n,1200}],PrimeQ] (* Vladimir Joseph Stephan Orlovsky, Feb 18 2011*)
  • PARI
    g1(p,n)=for(x=1,n,c=composite(x);y=p^c+c;if(gcd(y,c)==1,if(isprime(y),print1 (y",")))) composite(n) = \ the n-th composite number { local(c,x); c=1; x=0; while(c <= n, x++; if(!isprime(x),c++); ); return(x) }

Formula

a(n) = A006127(A100556(n-1)) for n >= 2. - Amiram Eldar, Jun 30 2024

A155848 Primes of the form 2^p-p*q where p is prime, q=9.

Original entry on oeis.org

-19, -13, 1949, 2535301200456458802993406409843
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    q=9;lst={};Do[p=Prime[n];If[PrimeQ[p=2^p-p*q],AppendTo[lst,p]],{n,5!}];lst
    Select[2^#-9#&/@Prime[Range[50]],PrimeQ] (* Harvey P. Dale, Aug 26 2014 *)

A155849 Primes of the form 2^p-p*q where p is prime,q=15.

Original entry on oeis.org

-37, -43, 23, 130817, 2535301200456458802993406409237, 36499524940977561749129372845602330599145828057988479444633540143194201337669419092047302490538971198229138476588755258485509637771003503986021290557777713506015957394882119600662993537972820563
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    q=15;lst={};Do[p=Prime[n];If[PrimeQ[p=2^p-p*q],AppendTo[lst,p]],{n,5!}];lst
Previous Showing 11-15 of 15 results.