OFFSET
1,2
LINKS
Matthew Campbell and Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 2516 terms from Campbell)
FORMULA
a(n) = pi(A260298(n)).
EXAMPLE
The 4th prime is 7, and the hyperfactorial of 7 is 4031078400000, which is congruent to 1 mod 7. - Kellen Myers, Aug 19 2015
MATHEMATICA
PrimePi[fQ[n_]:= Mod[Hyperfactorial[n - 1], n] == 1; Select[Prime@Range@250, fQ]] (* Vincenzo Librandi, Aug 20 2015 *)
PROG
(PARI) is(n, p=prime(n))=prod(k=2, p-1, Mod(k, p)^k)==1 \\ Charles R Greathouse IV, Aug 29 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Matthew Campbell, Jul 22 2015
STATUS
approved