Jump to content

Ramanujan primes: Difference between revisions

Line 374:
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>l = Table[PrimePi[xRange[10^6]] - PrimePi[x/2], {x, Range[10^6}]/2];
Multicolumn[1 + Position[l, #][[-1, 1]] & /@ Range[0, 99], {Automatic, 10}, Appearance -> "Horizontal"]
1 + Position[l, 999][[-1, 1]]
1,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.