mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > enzocreti

Reply
 
Thread Tools
Old 2019-04-25, 06:06   #12
dcheuk
 
dcheuk's Avatar
 
Jan 2019
Tallahassee, FL

2×3×41 Posts
Default

Quote:
Originally Posted by GP2 View Post
Most programming languages (other than C and C++) have modular exponentiation library functions.

For instance, in Python: pow(2,82589933,19*19) gives 243
Most of the time I wonder how these functions are programmed, I would imagine they have the best programmers working on them to ensure high efficiency and speed, probably no one except themselves would understand what is going on.

I need to read that book on Fourier transform still lol been slacking.
dcheuk is offline   Reply With Quote
Old 2019-04-25, 15:43   #13
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I assume your bet is that the number is composite?
Good catch! These days people constantly change their own posts.
It's a good thing that they cannot change the title.

mersenneforum.org > Extra Stuff > Blogorrhea > enzocreti > Is (2^82589933-243)/19^2 prime?

Quote:
Originally Posted by Batalov View Post
Bet you $100 against your 1 lira that it isn't.
Unfortunately, because of the primary behavior (some people change their posts), many others started (secondary to that) all the time quoting the page-long posts, ...only to answer then, "Yes".
Batalov is offline   Reply With Quote
Old 2019-04-25, 15:44   #14
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by dcheuk View Post
Most of the time I wonder how these functions are programmed, I would imagine they have the best programmers working on them to ensure high efficiency and speed, probably no one except themselves would understand what is going on.
Well, the kinds of people who hang out here would often understand them.
CRGreathouse is offline   Reply With Quote
Old 2019-04-25, 15:50   #15
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Default

Quote:
Originally Posted by dcheuk View Post
Most of the time I wonder how these functions are programmed, ...

I need to read that book on ...
Yes!
Well in this case one thing is not connected to the other. mod exponentiation for factoring has no Fourier in it. But if you are willing to read the book - absolutely! Regardless!
Batalov is offline   Reply With Quote
Old 2019-04-25, 16:37   #16
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Is (2^82589933-243)/19^2 prime?
Quote:
Originally Posted by Batalov View Post
Bet you $100 against your 1 lira that it isn't.
Let me explain Serge's bet, for those who might be curious. If we came across a number N = (2^82589933-243)/361 and we knew nothing about it, we might guess that it was prime with 'probability' 1/log N or about 0.000000017. Of course either it is prime or it isn't, but without calculating this gives us a way to play the odds based only on its size: most numbers that big are composite.

But if we realized that N is odd, we should take this into account: it makes it twice as likely to be prime, or about 0.000000035. Checking that it's not a multiple of 3, we now know that it's 3/2 as likely to be prime, since normally only 2 out of every 3 pass this test.

But enzocreti knows more: it's not divisible by any prime up to 4e9. This means we can multiply its chances by 2/1 * 3/2 * 5/4 * ... * 3999999979/3999999978. But that's getting a bit tedious, so we use one of Mertens' theorems and approximate this as e^gamma * log(4e9) = 36.9.... (Note that Euler's constant gamma is implemented in PARI/GP as Euler.) So that bumps the chances all the way up to 0.00000064.

Had enzocreti instead gone up to 10^20, the probability could have been improved to 0.0000014. But I'd still bet with Serge.
CRGreathouse is offline   Reply With Quote
Old 2019-04-25, 17:20   #17
axn
 
axn's Avatar
 
Jun 2003

22·3·421 Posts
Default

This number is sufficiently small that it can be PRP tested (using, say, P95) in a few core-week's time.

So the answer to "could you prove..." is "do it yourself".
axn is online now   Reply With Quote
Old 2019-04-26, 06:52   #18
dcheuk
 
dcheuk's Avatar
 
Jan 2019
Tallahassee, FL

2·3·41 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Well, the kinds of people who hang out here would often understand them.
It is truly amazing that there are brilliant people that can make these algorithms up, so is the ability to read dense and compact codes someone else wrote and fully comprehend the algorithms that was used.

Quote:
Originally Posted by Batalov View Post
Yes!
Well in this case one thing is not connected to the other. mod exponentiation for factoring has no Fourier in it. But if you are willing to read the book - absolutely! Regardless!
It is always fun to learn something new in math, especially things related to nt.

I am going through a book currently that explains quite a lot on computational number theory (mostly factoring, it's probably very basic for you guys) - The Joy of Factoring by Wagstaff.

I have the Fourier Analysis book by Stein on a corner somewhere, was planning to read it after finish his books on real and functional analysis, but progress has been slow lol.

There're way too much math to learn, read and digest ... and everything is so dense
dcheuk is offline   Reply With Quote
Old 2019-04-27, 07:01   #19
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

7·1,373 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Let me explain ...
+1
LaurV is offline   Reply With Quote
Old 2019-04-30, 08:37   #20
enzocreti
 
Mar 2018

2×5×53 Posts
Default 8#*2#*5#*8#*9#*9#*3#*3# - 82589933 is prime!

8#*2#*5#*8#*9#*9#*3#*3# - 82589933 is prime!
What is 82589933?
Obviously this my curio was published in Chris Caldwell page!

And just now I realized it is a prime p such that 2p-1 is also prime!

Last fiddled with by enzocreti on 2019-04-30 at 08:46
enzocreti is offline   Reply With Quote
Old 2019-04-30, 09:47   #21
enzocreti
 
Mar 2018

2×5×53 Posts
Default even more amazing

8401414020133=2*(8#*2#*5#...*3#-82589933)-1 is prime

and 8401414020133+/- 84(the two first digits of the prime) are primes!
enzocreti is offline   Reply With Quote
Old 2019-05-02, 13:50   #22
enzocreti
 
Mar 2018

2·5·53 Posts
Default 8#*2#*5#...*3#-82589933

8#*2#*5#...*3#-82589933 is a prime such that 2p-1 is also prime!


Do you guess what is 82589933?
The exponent of the last greatest Mersenne prime!
enzocreti is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! dabaichi News 571 2020-10-26 11:02
How does one prove that a mersenne prime found with CUDALucas is really prime? ICWiener Software 38 2018-06-09 13:59
disk died, prime work lost forever? where to put prime? on SSD or HDD? emily PrimeNet 3 2013-03-01 05:49
How do I determine the xth-highest prime on prime pages? jasong Data 7 2005-09-13 20:41
The 40th known Mersenne prime, 220996011-1 is not PRIME! illman-q Miscellaneous Math 33 2004-09-19 05:02

All times are UTC. The time now is 04:47.


Sat Jul 17 04:47:22 UTC 2021 up 50 days, 2:34, 1 user, load averages: 1.99, 2.15, 2.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.