![]() |
|
|
#1 |
|
Sep 2003
A1E16 Posts |
|
|
|
|
|
|
#2 |
|
"Forget I exist"
Jul 2009
Dartmouth NS
8,461 Posts |
|
|
|
|
|
|
#3 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24×3×163 Posts |
There's precedent, literally. Or was there? The article speculates they were mentally sieving for low primes. http://www.pepijnvanerp.nl/articles/oliver-sackss-twins-and-prime-numbers/
Last fiddled with by kriesel on 2018-03-22 at 03:02 |
|
|
|
|
|
#4 | |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
782410 Posts |
Quote:
If q=ab, 2^q-1 = 2^(ab)-1 has factors 2^a-1 and 2^b-1. Consider a=3, b=5. The binary expression is 111 111 111 111 111 (77777 octal) or 11111 11111 11111. A special case of repdigit numbers. Similarly you can tell the decimal numbers below are factorable at a glance: 22 333 44 5555 66666 777 8888 9999 |
|
|
|
|
|
|
#5 | |
|
"David"
Jul 2015
Ohio
51710 Posts |
Quote:
Isn’t a trained neural network with N nodes not so dissimilar? In this case the minimum number of nodes that could provide the correct answer may indeed be very large. |
|
|
|
|
|
|
#6 | |
|
Jun 2003
23·683 Posts |
Quote:
But how can we know that it is correct? Obviously, we will have to test every "yes" answer with LL/PRP test. Doesn't sound too bad. But how can we be sure that it didn't miss out any primes? Oops. Now we gotta test every "no" answer as well with LL/PRP. The problem is that the NN prediction is indeed a black box and as such, does not constitute mathematical proof. If such an NN could be built (and I seriously doubt it -- I think prime prediction is a poor domain for NN), at best it will accelerate some prime finds (because we can cherry pick its "yes" predictions for initial tests), but overall there will be no savings. EDIT:- In fact, we can try building a much simpler NN which will predict the nth prime. The advantage here is that we have a large training data set, and it is very easy to validate its predictions. I predict that it will be a miserable failure (i.e. success < 99%.) Last fiddled with by axn on 2018-03-22 at 03:59 |
|
|
|
|
|
|
#7 | |
|
"David"
Jul 2015
Ohio
11·47 Posts |
Quote:
That said I also figured you’d try to build it as a general prime generator. Let’s say we give it 128 bits of input and train it against 50% of those primes. Or more precisely, we increase the number of nodes gradually and document the success rate of its detection of the rest of the set. Wouldn’t this data give an interesting bit of insight into the complexity of the best prime finding algorithm? Someone must have explored this or other such simpler problems (can I document the size of a neural net with 64 (2x32) inputs and 64 outputs needed to successfully be trained as a multiplier?). Of course you could replace the word neural net with Boolean circuit, except it is hard (I know of no way) to train a Boolean circuit to let it self-discover the ideal gates it must use to get given output sets from input sets. The idiot savant that recognizes primes concept is interesting. Annecdotal story aside. |
|
|
|
|
|
|
#8 | |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
24×3×163 Posts |
Quote:
It's not clear how one does an LL computation fully parallel, since each iteration depends on its predecessor. The same applies to PRP3. The giant chip is scaled for all iterations. That means it would be a pipeline as deep as all iterations of an exponent. Much of the memory of a gpu is omitted if the data can be clocked through. Dividing it into roughly square pipeline stages raises the clock rate by a factor of ~9000. Scaling it down to do one iteration of one exponent at a time gives a chip area of about 43m on a side. Still bigger than some suburban lots. At the other extreme, teaching a device to return prime or composite for Mersenne exponents up to 2^32 is a bear, but the device is simple. A half gigabyte of memory can hold the 4-gigabit bit map, including for simplicity a bit for each of the composite exponents; a quarter gigabyte if we skip the evens. Figuring out whether to put a one indicating prime or leave a zero indicating composite takes a GTX1070 several days in the lower portion. Thirty thousand of them have a collective throughput of 4 per minute. It takes much longer in the upper portion. (Just fill it all with zeroes, and it's _mostly_ right at the start!) We think we know what to put in the first 2.5+ megabytes representing odd exponents up to about 43M, with a good degree of certainty, and nearly the first 5 megabytes with >95% confidence. It doesn't take long to write the 50 ones we know. After that, for bit positions representing prime exponents, it gets hard. "No neural network has solved computationally difficult problems such as the n-Queens problem, the travelling salesman problem, or the problem of factoring large integers." https://en.wikipedia.org/wiki/Artifi...retical_issues A very simple circuit, that always returns composite, will indicate primality for mersenne numbers correctly for a very high percentage of the inputs above value 10,000. The known error rate over exponents up to a billion (~50.8 million prime exponents, 50 known Mersenne primes) is slightly under 1 ppm. Last fiddled with by kriesel on 2018-03-22 at 06:46 |
|
|
|
|
|
|
#9 | |
|
"Forget I exist"
Jul 2009
Dartmouth NS
8,461 Posts |
Quote:
Last fiddled with by science_man_88 on 2018-03-22 at 10:07 |
|
|
|
|
|
|
#10 | |
|
Sep 2003
2·5·7·37 Posts |
Quote:
That's because if x is a factor of 10−1 then 10 ≡ 1 (mod x). The same is true of any base, not just ten. So in octal you can use the same trick to determine if a number is divisible by 7; and in hex you can determine if a number is divisible by 3 or 5. So just by grouping and adding up the binary digits of an arbitrary-precision number, you can determine if it's divisible by 3, 5 or 7, and obviously 2 is trivial. But I don't know if you'd save time doing that, and it certainly doesn't need neural networks to figure that out. Would neural networks really find some kind of telltale pattern in the bits that would elude mathematicians? Or maybe I misunderstood the original statement. |
|
|
|
|
|
|
#11 | |
|
"David"
Jul 2015
Ohio
11×47 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| probabilty of finding a mersenne prime | wildrabbitt | Information & Answers | 3 | 2014-12-19 20:50 |
| How close have you been to finding a Mersenne prime? | NBtarheel_33 | Data | 42 | 2013-07-17 19:21 |
| A prime finding formula. what do you think? | cipher | Math | 15 | 2009-06-08 05:19 |
| Will prime finding become easier? | jasong | Math | 5 | 2007-12-25 05:08 |
| Network Administration software for Prime ? | fuzzfuzz | Software | 6 | 2002-09-10 08:46 |