A164958 Primes p with the property that if p/3 is in the interval (p_m, p_(m+1)), where p_m>=3 and p_k is the k-th prime, then the interval (3p_m, p) contains a prime.
2, 3, 5, 13, 19, 29, 31, 43, 47, 61, 67, 73, 79, 83, 101, 103, 107, 109, 137, 139, 151, 157, 167, 173, 181, 193, 197, 199, 229, 233, 241, 257, 263, 271, 277, 281, 283, 313, 317, 349, 353, 359, 367, 373, 379, 389, 401, 409, 431, 433, 439, 443, 461, 463, 467, 487, 499
Offset: 1
Keywords
Examples
If p=61, the p/3 is in the interval (19, 23); we see that the interval (57, 61) contains a prime (59). Thus 61 is in the sequence.
Programs
-
Mathematica
nn=1000; t=Table[0, {nn+1}]; s=0; Do[If[PrimeQ[k], s++]; If[PrimeQ[k/3], s--]; If[s<=nn && t[[s+1]]==0, t[[s+1]]=k], {k, Prime[3*nn]}]; Rest[t]
Extensions
Extended by T. D. Noe, Nov 23 2010
Comments