OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(57) and beyond from Michael S. Branicky, May 05 2021
STATUS
approved