OFFSET
1,1
COMMENTS
Also known as non-Ramanujan Primes. - John W. Nicholson, Jan 29 2012
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..10000
J. Sondow, Ramanujan primes and Bertrand's postulate, arXiv:0907.5232 [math.NT], 2009-201; Amer. Math. Monthly 116 (2009), 630-635. - John W. Nicholson, Jan 29 2012
J. Sondow, J. W. Nicholson, and T. D. Noe, Ramanujan Primes: Bounds, Runs, Twins, and Gaps, arXiv:1105.2249 [math.NT], 2011; J. Integer Seq. 14 (2011) Article 11.6.2 - John W. Nicholson, Jan 29 2012.
MATHEMATICA
nn = 100; R = Table[0, {nn}]; s = 0;
Do[If[PrimeQ[k], s++]; If[PrimeQ[k/2], s--]; If[s < nn, R[[s + 1]] = k], {k, Prime[3 nn]}
];
R = R + 1;
Complement[Prime[Range[PrimePi[Last[R]]]], R] (* Jean-François Alcover, Nov 05 2018, after T. D. Noe in A104272 *)
PROG
(Perl) use ntheory ":all"; my @n = grep { !is_ramanujan_prime($_) } @{primes(1e3)}; say "[@n]"; # Dana Jacobsen, Jul 15 2016
(Perl) use ntheory ":all"; my %r; $r{$_} = 1 for @{ramanujan_primes(1e7)}; say for grep { !exists $r{$_} } @{primes(1e7)}; # Dana Jacobsen, Jul 15 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Nov 29 2010
STATUS
approved