![]() |
|
|
#1 |
|
May 2004
22·79 Posts |
I wanted to check whether the exponent in M_47 (12978189 ) is a Mangammal prime A123239-0EIS or not. So I tried to run the following program in pari:
{p(n) = if (Mod(3,12978189)^n = = 2, print(“integer”))} for (n = 1, 12978188, print p(n))) However this will take at least some hours . Two questions: a) Is pari capable of this? b) If so is there a shorter cut? A.K. Devaraj |
|
|
|
|
|
#2 |
|
Jun 2003
2·3·7·112 Posts |
1. 12978189 = 3^2*7^2*29429 is not a prime.
2. 47th mersenne prime has an exponent 43112609 3. Code:
? p=43112609; s=Mod(3,p); z=znorder(s); for(i=2,z, if((s*=3)==2, return(i))) %7 = 30763196 ? ## *** last result computed in 18,347 ms. ? Mod(3,p)^% %8 = Mod(2, 43112609) Code:
? znlog(2, Mod(3,p)) %9 = 30763196 ? ## *** last result computed in 32 ms. Last fiddled with by axn on 2011-12-22 at 05:39 |
|
|
|
|
|
#3 | |
|
May 2004
22·79 Posts |
Quote:
A.K. Devaraj |
|
|
|
|
|
|
#4 |
|
Dec 2010
Monticello
5×359 Posts |
Small correction: 2^43112609-1 is the 47th KNOWN Mersenne Prime. There's a distinct nonzero (O(1:1000) or better) probability that it's actually the 48th Mersenne Prime.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Distribution of Mersenne primes before and after couples of primes found | emily | Math | 34 | 2017-07-16 18:44 |
| A particular Mangammal prime | devarajkandadai | Software | 5 | 2013-09-22 04:24 |
| Mangammal primes | devarajkandadai | Math | 19 | 2007-04-16 11:04 |
| Mangammal Primes | devarajkandadai | Math | 1 | 2006-12-18 09:12 |
| possible primes (real primes & poss.prime products) | troels munkner | Miscellaneous Math | 4 | 2006-06-02 08:35 |