login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A138578 Numbers k such that 2^(2*k-7)-7 is prime. 0
23, 361, 995, 1163, 1253, 1891, 6413 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
2^(2*23-7) - 7 = 549755813881 is prime.
PROG
(PARI) is(n)=isprime(2^(2*n-7)-7) \\ Charles R Greathouse IV, Jun 13 2017
(Python)
from sympy import isprime
def afind(limit):
k = 5; pow2 = 2**(2*k-7)
while k < limit:
while not isprime(pow2 - 7) and k <= limit: k += 1; pow2 *= 4
if k > limit: return
print(k, end=", "); k += 1; pow2 *= 4
afind(2000) # Michael S. Branicky, Apr 23 2021
CROSSREFS
Sequence in context: A025964 A180361 A021684 * A077515 A025942 A020000
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
a(6)-a(7) from Michael S. Branicky, Apr 23 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)