A210940 The prime numbers and their nonprime nearest-neighbors.
1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 22, 23, 24, 28, 29, 30, 31, 32, 36, 37, 38, 40, 41, 42, 43, 44, 46, 47, 48, 52, 53, 54, 58, 59, 60, 61, 62, 66, 67, 68, 70, 71, 72, 73, 74, 78, 79, 80, 82, 83, 84, 88, 89, 90, 96, 97, 98, 100
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
{#-1,#,#+1}&/@Prime[Range[30]]//Flatten//Union (* Harvey P. Dale, Jul 06 2019 *)
Extensions
Corrected (74 added) by Harvey P. Dale, Jul 06 2019
Comments