OFFSET
1,1
COMMENTS
Composites c such that A121559(c) = 0. - Michel Marcus, Aug 22 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Iteration procedure for a(3) = 15: 15 mod 13 = 2, 2 mod 2 = 0.
MAPLE
g:= proc(x) if isprime(x) then 0 else x mod prevprime(x) fi end proc:
f:= proc(x) local y; y:= x; while y > 1 do y:= g(y) od; y = 0 end proc:
select(not(isprime) and f, [$4..200]); # Robert Israel, Feb 09 2015
MATHEMATICA
Composites := Select[Range[2, 200], ! PrimeQ[#] &]; Select[Composites, PrimeQ[# - NextPrime[#, -1]] &] (* Carlos Eduardo Olivieri, Feb 09 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Jan 28 2010
EXTENSIONS
Missing term 55 inserted, more terms added, Michel Marcus, Aug 22 2014
STATUS
approved