cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A103390 Natural numbers but with nonprimes squared.

Original entry on oeis.org

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

Views

Author

Parthasarathy Nambi, Mar 20 2005

Keywords

Examples

			4 is not a prime, so it is squared.
		

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