A173137 n-th nonnegative noncomposite number plus n.
1, 3, 5, 7, 10, 13, 18, 21, 26, 29, 34, 41, 44, 51, 56, 59, 64, 71, 78, 81, 88, 93, 96, 103, 108, 115, 124, 129, 132, 137, 140, 145, 160, 165, 172, 175, 186, 189, 196, 203, 208, 215, 222, 225, 236, 239, 244, 247, 260, 273, 278, 281, 286, 293, 296, 307, 314, 321
Offset: 1
Examples
a(1) = 0 + 1 = 1, a(2) = 1 + 2 = 3, a(3) = 2 + 3 = 5, a(4) = 3 + 4 = 7, a(5) = 5 + 5 = 10.
Programs
-
Magma
[1] cat [NthPrime(n-1)+n+1: n in [1..58] ]; // Vincenzo Librandi, Dec 08 2015
-
Mathematica
Join[{1}, Table[Prime[n - 1] + n + 1, {n, 2, 60}]] (* Vincenzo Librandi, Dec 08 2015 *)
Extensions
Corrected by Charles R Greathouse IV, Mar 25 2010