![]() |
|
|
#12 |
|
27×3×7 Posts |
I understand you need some code to implement in a computer program. please specify the OS platform and programming language you preffer to work with and i'll see what i can do.
From what i gather you need to test primes up to 20 digits, is this correct? Please reply here or at the user forum at www.shteker.com |
|
|
|
#13 |
|
Nov 2002
7410 Posts |
I'm using win98 and c++
mostly i wirte my programs with the help of the MIRACL libary or the giantint library |
|
|
|
|
|
#14 |
|
Sep 2002
2×331 Posts |
Some basic background information on trial factoring.
Only need to test to the square root of the number. For numbers expressed in base ten the square root will be at most one more than half the number of digits as the number your trying to factor. A 15 digit number would have 8 digits max for the square root. All primes except 2 and 3 are 6x +/- 1 with x = 1 ... so the factor mod 6 must be either 1 or 5 to be a potential prime. A 64 bit unsigned integer can hold a 20 digit number (18446744073709551615 max). |
|
|
|
|
|
#15 |
|
Nov 2002
4A16 Posts |
but trial factoring a 20 -digit number take a while!!!
I want to implement a primility test where i know theat the number is 100% prime!!! |
|
|
|
|
|
#16 | |
|
∂2ω=0
Sep 2002
República de California
103×113 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anti-poverty drug testing vs "high" tax deduction testing | kladner | Soap Box | 3 | 2016-10-14 18:43 |
| PRP testing | pepi37 | Software | 6 | 2013-04-12 09:42 |
| Testing | grobie | Marin's Mersenne-aries | 1 | 2006-05-15 12:26 |
| Speed of P-1 testing vs. Trial Factoring testing | eepiccolo | Math | 6 | 2006-03-28 20:53 |
| P-1 Testing | ndpowell | Math | 4 | 2005-06-26 20:14 |