mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Miscellaneous Math

Reply
 
Thread Tools
Old 2010-09-24, 22:47   #694
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

look in our example

10^2 mod 6 = (10 mod 6)^2 mod 6 so:

100 % 6 = 4^2 %6

4^2 mod 6 = 4

if we can find a power of nineteen with a small remainder with the number bigger than 19 that is a power that divides the exponent we can use that small remainder to a smaller power mod the number again to figure it out.
science_man_88 is offline   Reply With Quote
Old 2010-09-24, 22:57   #695
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

A prime with only 6s and 7s as digits:

Code:
7677676676677777767677677666676767676766677677677767677677767776776767676667776677667776666676766766777676767666767667776676767776676766776767676766766666666676677776776666777777777777777777777777777777777777777777777777777777 (226 digits)
Ha!

Last fiddled with by 3.14159 on 2010-09-24 at 22:57
3.14159 is offline   Reply With Quote
Old 2010-09-24, 23:25   #696
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

69016 Posts
Default

So far, the best idea in mind is to perform exponentiation according to the prime factorization of 60, in this case:

So, begin with 19^1 mod 3773512084578210152449.

Obtain cube: 6859 modulo 3773512084578210152449

The above, to the 5th power:

6859^5 mod 3773512084578210152449 = 15181127029874798299 mod 3773512084578210152449.

The above, to the 4th power:

15181127029874798299^4 modulo 3773512084578210152449, which is 1 mod 3773512084578210152449.

The test fails for a = 19.

Composite? No.

Primality testing 3273*2^60+1 [N-1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 7
Special modular reduction using generic reduction x87 FFT length 32 on 3273*2^60+1
Calling Brillhart-Lehmer-Selfridge with factored part 84.51%
3273*2^60+1 is prime! (0.0165s+0.0006s).

.. The only way it's going to be painful to do by hand is if the exponent is prime.

Ex: 10040 * 2^229 + 1.

Last fiddled with by 3.14159 on 2010-09-24 at 23:35
3.14159 is offline   Reply With Quote
Old 2010-09-24, 23:43   #697
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by 3.14159 View Post

.. The only way it's going to be painful to do by hand is if the exponent is prime.

Ex: 10040 * 2^229 + 1.
10040 = 2^3*1255

2^3*2^229 = 2^232 the exponent is no longer prime.
science_man_88 is offline   Reply With Quote
Old 2010-09-24, 23:58   #698
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

For PFGW's trial division switch:

Not enough integers to be used?

For n ≤ 10^9, there should be about 50845000 primes to divide by. PFGW (3.3.6) is only using about 25 million.

Is it just me, or is there something funny going on, yet again?

Last fiddled with by 3.14159 on 2010-09-25 at 00:01
3.14159 is offline   Reply With Quote
Old 2010-09-25, 01:52   #699
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

303*2^6393 + 1 divides 2^(2^6390) + 1. Any links to a list of the known Fermat divisors?

Last fiddled with by 3.14159 on 2010-09-25 at 01:53
3.14159 is offline   Reply With Quote
Old 2010-09-25, 02:22   #700
axn
 
axn's Avatar
 
Jun 2003

508510 Posts
Default

http://www.prothsearch.net/fermat.html
axn is online now   Reply With Quote
Old 2010-09-25, 03:22   #701
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

I downloaded a sieve program that seemed to be nearly evenly matched with NewPGen;

It can be downloaded here.

For k * 2^7500 + 1; sieve limit being 10^10, NewPGen took about 74-76 seconds. TwinGen took about the same amount of time to sieve to 10^10.

However, it can only use b = 2, not generalized bases.

Update: TwinGen > NewPGen when using > 1 threads. No contest there.

4 threads.. Okay; I definitely have a new base 2 sieve.

However; NewPGen remains for b > 2.

Excellent news, because I can eliminate faster, albeit at the loss of notifying me when a particular p divides a particular k.

Last fiddled with by 3.14159 on 2010-09-25 at 03:50
3.14159 is offline   Reply With Quote
Old 2010-09-25, 03:59   #702
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

Woots. Moving at a mile a minute, so to speak.
3.14159 is offline   Reply With Quote
Old 2010-09-25, 11:54   #703
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

69016 Posts
Default

I've reached the upper end of the recommended sieve limit; I am at 35153 candidates remaining, and have sieved to 57.92 trillion.

My odds are at 1 in 7242.

Last fiddled with by 3.14159 on 2010-09-25 at 12:34
3.14159 is offline   Reply With Quote
Old 2010-09-25, 16:46   #704
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

I think I'll stop at 60707053457923, where there are about 35090 k's left. My odds are now at 1 in 7233.. Not much of a change.

Last fiddled with by 3.14159 on 2010-09-25 at 17:05
3.14159 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime posting thread, part 2. (With a catch.) 3.14159 Miscellaneous Math 55 2010-11-19 23:55
Tiny range request .... 555.1M petrw1 LMH > 100M 1 2010-07-13 15:35
Other primes thread nuggetprime No Prime Left Behind 32 2009-10-21 21:48
Error: tiny factoring failed 10metreh Msieve 26 2009-03-08 23:28
Tiny error on nfsnet pages. antiroach NFSNET Discussion 1 2003-07-08 00:27

All times are UTC. The time now is 08:01.


Fri Aug 6 08:01:23 UTC 2021 up 14 days, 2:30, 1 user, load averages: 2.07, 2.28, 2.39

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.