![]() |
|
|
#23 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
|
|
|
|
|
|
#24 | |
|
∂2ω=0
Sep 2002
República de California
103·113 Posts |
Quote:
#Fail |
|
|
|
|
|
|
#25 |
|
May 2003
7×13×17 Posts |
Stan,
Consider the following example. Let Next, the smallest The problem in your file seems to come right near the end. There is no justification for the claim that Now let me give you some advice. The first example where Sincerely, Pace Last fiddled with by Zeta-Flux on 2015-05-11 at 03:21 |
|
|
|
|
|
#26 | |
|
Jun 2003
5,051 Posts |
Quote:
1223 is smallest prime of the form 2kp+1 = 7 (mod 8). k=13, lambda=3. However, it doesn't divide. The actual smallest prime of that form that does divide M(p) is 2351 (k=25, mu=6). Code:
find_counter_example(p)=for(k=1,100, f=(8*k+2)*p+1; if(isprime(f), if(Mod(2,f)^p!=1, print("Counter example ", p, ":", k)); return));
forprime(p=3, 1001, if(p%4==3 && !isprime(2*p+1) && !isprime(2^p-1), find_counter_example(p)))
|
|
|
|
|
|
|
#27 | |
|
Einyen
Dec 2003
Denmark
315910 Posts |
Quote:
|
|
|
|
|
|
|
#28 |
|
Dec 2011
22×32 Posts |
Many thanks axn, your pari program has, I think, found a factor of MM127 and therefore MM127 is composite. Could you please check the validity of the program and let me know what you think.
The program is: find_example(p)=for(k=1,100,q=(8*k+2)*p+1;if(isprime(q),if(Mod(2,q)^p=1,print("Example ",q," : ",k)); p=2^127-1;find_example(p) The program gives k = 14, q = 19396094914493492417412352623610788052879. If it is correct, MM127 has the factor q. Last fiddled with by Stan on 2015-06-18 at 20:56 Reason: program missing |
|
|
|
|
|
#29 | |
|
Jun 2014
23×3×5 Posts |
Quote:
|
|
|
|
|
|
|
#30 |
|
Dec 2011
22×32 Posts |
|
|
|
|
|
|
#31 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
Last fiddled with by science_man_88 on 2015-06-18 at 21:08 |
|
|
|
|
|
|
#32 |
|
Jun 2014
23×3×5 Posts |
I'm not sure if it's the same in pari, but the "if(Mod(2,q)^p=1" seems to not be comparing for equality, but rather attempting an assignment, because of the use of = instead of ==. (I've never used pari so I don't know if it uses those operators to mean the same things) One thing that's certain is that it's not running Mod(2,q)^p, since 2 mod q is 2, and 2^p has 2^127-1 bits, or roughly 2^44 yottabytes of data, which exceeds all memory capacities at the moment. If it's using modular multiplication for every step I'm not sure what's going wrong. What does a print of Mod(2,q)^p give?
|
|
|
|
|
|
#33 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
Code:
(18:16) gp > ??=== Comparison and Boolean operators: The six standard comparison operators <= , < , >= , > , == , != are available in GP. The result is 1 if the comparison is true, 0 if it is false. The operator == is quite liberal : for instance, the integer 0, a 0 polynomial, and a vector with 0 entries are all tested equal. The extra operator === tests whether two objects are identical and is much stricter than == : objects of different type or length are never identical. For the purpose of comparison, t_STR objects are strictly larger than any other non-string type; two t_STR objects are compared using the standard lexicographic order. GP accepts < > as a synonym for != . On the other hand, = is definitely not a synonym for == : it is the assignment statement. The standard boolean operators || (inclusive or), && (and) and ! (not) are also available. Last fiddled with by science_man_88 on 2015-06-18 at 21:45 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is MM127 a PRP? | aketilander | Operazione Doppi Mersennes | 6 | 2012-10-31 16:02 |
| MM127 | antimath | Lone Mersenne Hunters | 12 | 2012-01-11 03:46 |
| MM127 | Dougal | LMH > 100M | 26 | 2009-12-13 09:57 |
| Is MM127 Prime? Just a Poll | jinydu | Miscellaneous Math | 57 | 2008-11-08 17:48 |
| MM127 Checkout Page | clowns789 | Lone Mersenne Hunters | 44 | 2004-09-30 08:06 |