A103390 Natural numbers but with nonprimes squared.
0, 1, 2, 3, 16, 5, 36, 7, 64, 81, 100, 11, 144, 13, 196, 225, 256, 17, 324, 19, 400, 441, 484, 23, 576, 625, 676, 729, 784, 29, 900, 31, 1024, 1089, 1156, 1225, 1296, 37, 1444, 1521, 1600, 41, 1764, 43, 1936, 2025, 2116, 47, 2304, 2401, 2500, 2601, 2704, 53
Offset: 1
Examples
4 is not a prime, so it is squared.
Links
- Daniel Starodubtsev, Table of n, a(n) for n = 1..10000
- Peter Alfeld, The 1,000 smallest prime numbers .
Crossrefs
Cf. A103164.
Programs
-
Mathematica
Table[ If[ PrimeQ[n], n, n^2], {n, 0, 54}] (* Robert G. Wilson v, Mar 24 2005 *)
Extensions
More terms from Robert G. Wilson v, Mar 24 2005