login
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
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