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!)
A033299 Smallest safe prime ((p-1)/2 is also prime) > n. 4
5, 5, 5, 5, 7, 7, 11, 11, 11, 11, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, 83, 83, 83, 83, 83, 83, 83, 83, 83 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
with(numtheory); safeprime(n);
PROG
(Python)
from sympy import isprime, nextprime
def a(n):
p = nextprime(n)
while not isprime((p-1)//2): p = nextprime(p)
return p
print([a(n) for n in range(1, 68)]) # Michael S. Branicky, May 05 2021
CROSSREFS
Sequence in context: A139259 A105444 A240233 * A293982 A071577 A003870
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(57) and beyond from Michael S. Branicky, May 05 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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)