OFFSET
1,2
COMMENTS
EXAMPLE
Iteration procedure for a(5) = 10: 10 mod 7 = 3, 3 mod 2 = 1.
MATHEMATICA
np1Q[n_]:=!PrimeQ[n]&&MemberQ[NestWhileList[Mod[#, NextPrime[#, -1]]&, n, #>0&], 1]; Select[Range[150], np1Q] (* Harvey P. Dale, Jun 27 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Jan 23 2010
STATUS
approved