k-space : n-space tables

Note: As it is not possible to find k space tables online (everything is based on log scale counts of primes and twin primes in n space), I built out some tables up to k=10^15 (which is equivalent to n=6(10^15)+1 in n space) using existing literature and Primesieve.

It would not have been practical to do this with even the optimized segmented k space sieve I built for the k=10^12 run. Primesieve is a highly optimized C++ sieve. It is way faster than anything I built, but all it does is count in n space. So while the vanilla version isn’t useful for visualizations, or computing the Hardy Littlewood constants directly from raw data, Primesieve is the superior tool for counting.

I could probably run these using Primesieve for larger numbers as well, but it could take months potentially, and I’d have to leave my computer on. It took around 3 days on a 10 core M4 Mac to find the n=6(10^15)+1 counts (which I will note, was also — surprisingly for me anyway — way faster than Primesieve running on the 28-thread Intel i7-14700f I did the prior empirical work with).

The first few values, 0,1,2,3 are also included in order to show the different behavior of counts of primes and twin prime yielding k indices across the whole scale.

n range 0 to ?No of  Primes% of n Prime
000.00000000%
100.00000000%
2150.00000000%
3266.00000000%
10440.00000000%
1002525.00000000%
1,00016816.80000000%
10,0001,22912.29000000%
100,0009,5929.59200000%
1,000,00078,4987.84980000%
10,000,000664,5796.64579000%
100,000,0005,761,4555.76145500%
1,000,000,00050,847,5345.08475340%
10,000,000,000455,052,5114.55052511%
100,000,000,0004,118,054,8134.11805481%
1,000,000,000,00037,607,912,0183.76079120%
10,000,000,000,000346,065,536,8393.46065537%
100,000,000,000,0003,204,941,750,8023.20494175%
1,000,000,000,000,00029,844,570,422,6692.98445704%
10,000,000,000,000,000279,238,341,033,9252.79238341%
100,000,000,000,000,0002,623,557,157,654,2332.62355716%
1,000,000,000,000,000,00024,739,954,287,740,8602.47399543%
Table 1: Primes in n-space
k range 0 to ?No of Twin Prime Pairs (n=6k-1, n+2= 6k+1)% of k makes a twin prime in n=6k+-1
000.00000000%
11100.00000000%
22100.00000000%
33100.00000000%
10660.00000000%
1002626.00000000%
1,00014214.20000000%
10,0008108.10000000%
100,0005,3305.33000000%
1,000,00037,9153.79150000%
10,000,000280,5572.80557000%
100,000,0002,166,3002.16630000%
1,000,000,00017,244,4081.72444080%
10,000,000,000140,494,3961.40494396%
100,000,000,0001,166,916,9321.16691693%
1,000,000,000,0009,846,842,4830.98468425%
10,000,000,000,00084,209,699,4200.84209699%
100,000,000,000,000728,412,916,1220.72841292%
1,000,000,000,000,0006,363,082,106,4760.63630821%
Table 2: Twin prime-yielding k values in k-space
k Range: k>=10n Range: (k*6)+1No of Primes Less than or Equal to n in RangeNo of Twin Prime Pairs (6k-1,6k+1) Less than or Equal to n in Range
1061186
10060111026
1,0006,001783142
10,00060,0016,057810
100,000600,00149,0985,330
1,000,0006,000,001412,84937,915
10,000,00060,000,0013,562,115280,557
100,000,000600,000,00131,324,7042,166,300
1,000,000,0006,000,000,001279,545,36917,244,408
10,000,000,00060,000,000,0012,524,038,155140,494,396
100,000,000,000600,000,000,00123,007,501,7861,166,916,932
1,000,000,000,0006,000,000,000,001211,381,427,0399,846,842,483
10,000,000,000,00060,000,000,000,0011,955,010,428,25884,209,699,420
100,000,000,000,000600,000,000,000,00118,184,255,291,570728,412,916,122
1,000,000,000,000,0006,000,000,000,000,001169,969,662,554,5526,363,082,106,476
Table 3: k-space : n-space