mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-12-06, 15:59   #12
enzocreti
 
Mar 2018

10228 Posts
Default code

Quote:
Originally Posted by axn View Post
Code:
mod_check(p)=my(r=Mod(2,p)^7891455); (r*2-1)*Mod(10,p)^2375565+r==1
forprime(p=2,,if(mod_check(p),print(p)))
Here you go...

the program does not display where it arrived, I mean I would know: there is no factor below 4*10^32 for example

Last fiddled with by enzocreti on 2018-12-06 at 16:01
enzocreti is offline   Reply With Quote
Old 2018-12-06, 16:58   #13
axn
 
axn's Avatar
 
Jun 2003

22×3×421 Posts
Default

Quote:
Originally Posted by enzocreti View Post
the program does not display where it arrived, I mean I would know: there is no factor below 4*10^32 for example
Run it for as long as you have patience (say 24 hours). Then hit Ctrl-C. You'll get a "break>" prompt. Type p in there to show the current value of the loop variable. That's how far you've reached. If you want to continue from where you interrupted just hit ENTER (or edit the forprime loop to start from new value)
axn is online now   Reply With Quote
Old 2018-12-07, 17:58   #14
enzocreti
 
Mar 2018

2×5×53 Posts
Default GREAT DISCOVERY!!!

99999000001

divides


(2^7891456-1)*10^2375565+2^7891455-1!!!
enzocreti is offline   Reply With Quote
Old 2018-12-07, 18:11   #15
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

838410 Posts
Default

Quote:
Originally Posted by enzocreti View Post
99999000001

divides


(2^7891456-1)*10^2375565+2^7891455-1!!!
!!! means triple factorial right ... assuming not you are incorrect it has remainder 50542755186 on division by it.
science_man_88 is offline   Reply With Quote
Old 2018-12-07, 18:16   #16
enzocreti
 
Mar 2018

2×5×53 Posts
Default mistake

Quote:
Originally Posted by Batalov View Post
Why not use Sage for that, though?


A mistake!
enzocreti is offline   Reply With Quote
Old 2018-12-07, 18:17   #17
MisterBitcoin
 
MisterBitcoin's Avatar
 
"Nuri, the dragon :P"
Jul 2016
Good old Germany

809 Posts
Default

Quote:
Originally Posted by enzocreti View Post
99999000001

divides


(2^7891456-1)*10^2375565+2^7891455-1!!!

If you say so.
MisterBitcoin is offline   Reply With Quote
Old 2018-12-07, 18:31   #18
enzocreti
 
Mar 2018

2·5·53 Posts
Default MISTAKE

Quote:
Originally Posted by MisterBitcoin View Post
If you say so.
sorry a mistake!
enzocreti is offline   Reply With Quote
Old 2018-12-08, 04:50   #19
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

175B16 Posts
Default

Quote:
Originally Posted by enzocreti View Post
99999000001

divides


(2^7891456-1)*10^2375565+2^7891455-1!!!
Quote:
Originally Posted by science_man_88 View Post
!!! means triple factorial right ... assuming not you are incorrect it has remainder 50542755186 on division by it.
I concur:
Code:
p=99999000001; t=Mod(2,p)^7891455; T=Mod(10,p)^2375565; (2*t-1)*T+t-1
Quote:
Originally Posted by enzocreti View Post
sorry a mistake!
No worries, it happens.
CRGreathouse is offline   Reply With Quote
Old 2018-12-08, 05:08   #20
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

205510 Posts
Default

Quote:
Originally Posted by axn View Post
... Then hit Ctrl-C. You'll get a "break>" prompt.... If you want to continue from where you interrupted just hit ENTER...
IINM That only works on the Linux versions.

Last fiddled with by a1call on 2018-12-08 at 05:09
a1call is offline   Reply With Quote
Old 2018-12-08, 05:14   #21
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

135338 Posts
Default

Quote:
Originally Posted by a1call View Post
IINM That only works on the Linux versions.
AFAIK it should work with any version with breakloop = 1. Set default(breakloop, 1) then try it.
CRGreathouse is offline   Reply With Quote
Old 2018-12-08, 05:27   #22
a1call
 
a1call's Avatar
 
"Rashid Naimi"
Oct 2015
Remote to Here/There

3×5×137 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
AFAIK it should work with any version with breakloop = 1. Set default(breakloop, 1) then try it.
Will do Mr Greathouse.
Thank you very much.
a1call is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding multiples of a real number that are close to a whole number mickfrancis Math 16 2017-03-01 07:17
Estimating the number of primes in a partially-factored number CRGreathouse Probability & Probabilistic Number Theory 15 2014-08-13 18:46
Number 59649589127497217 is a factor of Fermat number F7 literka Miscellaneous Math 73 2013-11-17 10:33
Number of distinct prime factors of a Double Mersenne number aketilander Operazione Doppi Mersennes 1 2012-11-09 21:16
Fermat number F6=18446744073709551617 is a composite number. Proof. literka Factoring 5 2012-01-30 12:28

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


Sat Jul 17 04:28:56 UTC 2021 up 50 days, 2:16, 1 user, load averages: 2.04, 2.23, 2.30

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.