A173919 Numbers that are prime or one less than a prime.
1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 16, 17, 18, 19, 22, 23, 28, 29, 30, 31, 36, 37, 40, 41, 42, 43, 46, 47, 52, 53, 58, 59, 60, 61, 66, 67, 70, 71, 72, 73, 78, 79, 82, 83, 88, 89, 96, 97, 100, 101, 102, 103, 106, 107, 108, 109, 112, 113, 126, 127, 130, 131, 136, 137, 138, 139
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000.
- Diophante, A1880. NP (Nombres Premiers) en PA (Progression Arithmétique) (in French).
- Wikipedia, Primes in arithmetic progression.
- Index entries for sequences related to primes in arithmetic progressions.
Crossrefs
Programs
-
Mathematica
{#-1,#}&/@Prime[Range[40]]//Flatten//Union (* Harvey P. Dale, Dec 21 2018 *)
Extensions
Definition corrected and sequence extended by R. J. Mathar, Feb 24 2010, Mar 05 2010
Comments