OFFSET
1,1
EXAMPLE
226 is a term:
Iteration 1: 226 = 2*113 so 226 + (2+113) = 226 + 115 = 341 and composite.
Iteration 2: 341 = 11*31 so 341 + (11+31) = 341 + 42 = 383 and prime.
MATHEMATICA
aQ[n_]:=PrimeQ[Nest[#+Total[Times@@@FactorInteger[#]]&, n, 2]]; Select[Range[289], !PrimeQ[#]&&aQ[#]&] (* Jayanta Basu, May 31 2013 *)
PROG
(Magma) f:=func<n|n+(&+[j[1]*j[2]: j in Factorization(n)]) >; a:=[]; for k in [4..300] do if not IsPrime(k) and not IsPrime(f(k)) and IsPrime(f(f(k))) then Append(~a, k); end if; end for; a; // Marius A. Burtea, Oct 18 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Patrick De Geest, Aug 15 1999
EXTENSIONS
Name edited by Michel Marcus, Oct 18 2019
STATUS
approved