Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #11 Jan 25 2020 11:36:34
%S 0,1,2,3,16,5,36,7,64,81,100,11,144,13,196,225,256,17,324,19,400,441,
%T 484,23,576,625,676,729,784,29,900,31,1024,1089,1156,1225,1296,37,
%U 1444,1521,1600,41,1764,43,1936,2025,2116,47,2304,2401,2500,2601,2704,53
%N Natural numbers but with nonprimes squared.
%H Daniel Starodubtsev, <a href="/A103390/b103390.txt">Table of n, a(n) for n = 1..10000</a>
%H Peter Alfeld, <a href="http://www.math.utah.edu/~alfeld/math/primelist.html">The 1,000 smallest prime numbers </a>.
%e 4 is not a prime, so it is squared.
%t Table[ If[ PrimeQ[n], n, n^2], {n, 0, 54}] (* _Robert G. Wilson v_, Mar 24 2005 *)
%Y Cf. A103164.
%K easy,nonn
%O 1,3
%A _Parthasarathy Nambi_, Mar 20 2005
%E More terms from _Robert G. Wilson v_, Mar 24 2005