Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 4500 articles have referenced us, often saying "we would not have discovered this result without the OEIS".
Table of n, a(n) for n=2..71.
2 -> 2^2=4 -> 2^2+2^2=8 -> 2^2+2^2+2^12=12 -> 2^2+2^2+3^2=17, prime, so stop; a(2)=17.
Sequence in context: A103898 A140383 A029913 * A073125 A171240 A078201
Adjacent sequences: A029911 A029912 A029913 * A029915 A029916 A029917
More terms from Michel ten Voorde (seqfan(AT)tenvoorde.org) Apr 12 2001