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.

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

This page as a plain text file.
%I A100339 #17 Jun 30 2024 03:28:54
%S A100339 3,521,32783,549755813927,37778931862957161709643,
%T A100339 2417851639229258349412433
%N A100339 Primes of the form 2^q + q where q is not a prime.
%C A100339 The next term is 2^735+735 = 18073..35103, 222 digits long.
%H A100339 Amiram Eldar, <a href="/A100339/b100339.txt">Table of n, a(n) for n = 1..11</a> (terms 1..7 from N. J. A. Sloane)
%F A100339 a(n) = A006127(A100556(n-1)) for n >= 2. - _Amiram Eldar_, Jun 30 2024
%e A100339 For q = 9, 2^9+9 = 521 which is prime.
%t A100339 Select[Table[If[!PrimeQ[n],2^n+n,0],{n,1200}],PrimeQ] (* _Vladimir Joseph Stephan Orlovsky_, Feb 18 2011*)
%o A100339 (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) }
%Y A100339 Cf. A006127, A057664, A081296, A100556, A129962.
%K A100339 nonn
%O A100339 1,1
%A A100339 _Cino Hilliard_, Jan 11 2005