OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Smarandache-Wagstaff Function.
MAPLE
isA056983 := proc(p)
local idxp ;
if not isprime(p) then
return false ;
end if;
idxp := numtheory[pi](p) ;
if A125138(idxp) > 0 then
true ;
else
false ;
end if;
end proc:
A056983 := proc(n)
option remember ;
local p;
if n = 1 then
3;
else
p := procname(n-1) ;
while true do
p := nextprime(p) ;
if isA056983(p) then
return p;
end if;
end do:
end if;
end proc:
seq(A056983(n), n=1..70) ; # R. J. Mathar, Mar 26 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved