OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..600
FORMULA
MAPLE
f:= proc(n) local w, k;
w:= n!;
for k from 1 do
if isprime(k*w-1) then return k fi
od
end proc:
map(f, [$1..100]); # Robert Israel, Nov 23 2023
PROG
(PARI) a(n)=if(n<1, 0, k=1; while(isprime(k*n!-1)==0, k++); k)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 14 2003
STATUS
approved