Let f(x)=x+x'+x'', where x' = nextprime(x), the next larger prime.
Depending on the starting value, we get:
1 (not prime): 0 primes in the chain (as with any other composite starting value), a(0)=1.
2 -> f(2) = 2+3+5 = 10 (not prime): chain of 1 prime, a(1) = 2.
3 -> f(3) = 3+5+7 = 15 (not prime): chain of 1 prime.
5 -> f(5) = 5+7+11 = 23 -> f(23) = 23+29+31 = 83 -> f(83) = 269 -> 817 (not prime): chain of 4 primes, a(4)=5.
7 -> 31 -> 109 -> 349 -> 1061 -> 3193 (not prime): chain of 5 primes, a(5)=7.
11 -> 41 -> 131 -> 407 (not prime): chain of 3 primes, a(3)=11.
13 -> 49 (not prime): chain of 1 prime.
17 -> 59 -> 187 (not prime): chain of 2 primes: a(2) = 17.
|