![]() |
![]() |
#1 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2×17×59 Posts |
![]()
Hi all,
What would be a good estimate for the largest prime of the largest primorial that would fit on a terabyte dive? Thank you in advance. |
![]() |
![]() |
![]() |
#2 |
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
![]()
probably would depend on format for example 2*3*5= 11110 in binary which could be brought down to 1(4)0 which isn't any shorter in this case but in larger cases if this happened to be more than 4 it would start to be more efficient to compress it.
|
![]() |
![]() |
![]() |
#3 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
37268 Posts |
![]()
Hi SM,
I am looking for a rough estimate. The base of the number should not make much of a difference. Compression will, but only by a few orders of magnitude at its best. So let's say decimal digits stored without compression. I will be happy with a reasonable upper bound for the largest prime factor of the primorial that would fit on a terabyte dive. |
![]() |
![]() |
![]() |
#4 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2·17·59 Posts |
![]()
Let's break it down:
How many decimal digits can be written to a terabyte dive without compression? |
![]() |
![]() |
![]() |
#5 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 | |
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
22·3·887 Posts |
![]() Quote:
Now write yourself a little program which sums the decimal logarithm of the successive prime numbers and stop when the sum exceeds 1e12. Barring rounding errors, which I will leave you to think about, you then have your answer. Rounding errors will be severe, so you are still going to have to do some thinking to get an accurate answer. I'm prepared to give you a hint but not do all the work for you. Note to real mathematicians: there are much better approaches but those take more thinking ability than a1call has demonstrated so far in public. Last fiddled with by xilman on 2017-02-25 at 18:09 Reason: Add note. |
|
![]() |
![]() |
![]() |
#7 |
Feb 2017
Nowhere
4,457 Posts |
![]()
xilman said: If you store one digit per byte you are asking, in effect, for the largest primorial with not more than 1e12 digits. The decimal logarithm of this number is, of course, 1e12
Taking 1e12 as a ballpark figure for the base-ten logarithm makes sense. Of course, given that kind of bound, figuring out (at least approximately) the size of the largest prime whose primorial isn't any larger is one thing, and actually determining all the primes up to that point and then multiplying them together, is quite another. How long might that take? My guess is, "WAY too long to worry about writing the answer to a drive." |
![]() |
![]() |
![]() |
#8 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2×17×59 Posts |
![]()
Thank you for all the replies.
I have always disliked the e in scientific and engineering notations. So let's say the primorial can have 1T dd. Now roughly for what size of p would p# have 1T dd? Now for a very rough estimate (that suits me just fine) I get. p^x=10^(T-1) p^x=10^T And I don't know how to go further with 2 variables and one equation. Last fiddled with by a1call on 2017-02-25 at 20:10 |
![]() |
![]() |
![]() |
#9 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2×17×59 Posts |
![]()
I think the next equation I need is the number of primes less than n.
Isn't that ln(n)? Corrections are appreciated. p^x=10^T p^ln (p)=10^T Anyway this can be calculated without programming? Last fiddled with by a1call on 2017-02-25 at 20:30 |
![]() |
![]() |
![]() |
#10 | |
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
![]() Quote:
my logic was that an n digit number times an m digit number can give at most a n+m digit number ( or roughly like that) so if you knew the number of primes with a certain number of digits ( in PARI/GP primepi(10^x)-primepi(10^(x-1)) ) you could add x that many times for an upper bound on the number of digits added when you multiply by the product of all the primes in that range. ( my math has up to 10 digits only giving about 4.5 *10^9 so a long way to go potentially.) |
|
![]() |
![]() |
![]() |
#11 | |
Aug 2006
32·5·7·19 Posts |
![]() Quote:
I don't know how long these multiplications would take; they are huge compared to any benchmarks I've seen. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Largest Known Primorial | a1call | Miscellaneous Math | 11 | 2016-12-14 21:35 |
primorial primes | jasong | Math | 1 | 2006-08-12 01:38 |
Primorial puzzle | Citrix | Puzzles | 3 | 2006-03-07 15:07 |
Primorial question | Dougy | Math | 2 | 2005-07-28 13:13 |
need Pentium 4s for 5th largest prime search (largest proth) | wfgarnett3 | Lounge | 7 | 2002-11-25 06:34 |