OFFSET
1,4
PROG
(Magma) [((NthPrime(n) -1) mod n): n in [1..100]]; // Vincenzo Librandi, Apr 06 2011
(PARI) a(n) = (prime(n)-1) % n; \\ Kevin Ryde, Feb 03 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Sep 11 2003
STATUS
approved