![]() |
![]() |
#1 |
Jun 2022
410 Posts |
![]()
Greetings,
I am working on factoring a 130-digit semiprime (comprised of two 65-digit primes) and would like to check more than one 65-digit prime at a time. Is there a program that allows for checking a list of maybe five to ten 65-digit primes at a time? Thank you. -Ombrah |
![]() |
![]() |
![]() |
#2 |
Sep 2009
23×103 Posts |
![]()
Unless you know at least one of the factors comes from a fairly short list then trying 65 digit primes one or a few at a time is completely pointless. You would have to try more than 10^60 primes before finding a factor.
It would not be hard to factor with GNFS. Either GGNFS or CADO-NFS could do it in a day or so on a decent PC (though it'll take longer to work out how to use either of them). |
![]() |
![]() |
![]() |
#3 |
Jun 2022
22 Posts |
![]()
A really smart friend of mine said, "I'll give you 100 primes that it could be. How fast can you find it?"
She knows I don't know programming, so I'm just looking to save some time, and I want to learn some programming (though I'm not at her level). I'm a pretty simple guy. |
![]() |
![]() |
![]() |
#4 |
"Curtis"
Feb 2005
Riverside, CA
22×3×449 Posts |
![]()
If there are only 100 to check, it doesn't matter whether a program checks 1 at a time or 10 at a time; either way, you'd have an answer in less than a second as to which it is.
The program itself would take nearly no time- it's learning how to feed a list into a factor-checker that is the challenge she has given you. |
![]() |
![]() |
![]() |
#5 | |
Jun 2022
22 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Mar 2019
5×59 Posts |
![]()
Okay. So your setup is:
1. You have a 130-digit semiprime, and 2. You are given a list of a hundred 65-digit primes, one of which, you are told, is the factor? If that's the case, you can use Python to do something like: Code:
N = <your semiprime> primes = [2, 3, 5, 7, ...] <-- note: replace with primes you are given for p in primes: if N % p == 0: print(p) Of course, you can accomplish the same thing in PARI/GP, or pretty much any other programming language; this is just an example. But you might want to try https://www.learnpython.org or CodeAcademy, etc. to learn some actual programming after this exercise! |
![]() |
![]() |
![]() |
#7 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
43418 Posts |
![]()
Although it is highly recommended that you learn to use Programming/Scripting codes (PARI-GP is easy enough for me to use
![]() Just a thought. Please let us know how it goes. Last fiddled with by a1call on 2022-06-09 at 20:40 |
![]() |
![]() |
![]() |
#8 |
Sep 2002
Database er0rr
22×1,063 Posts |
![]()
How about gcd(P*Q, p1.p2.p3...p100)? (All primes)
|
![]() |
![]() |
![]() |
#9 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
43418 Posts |
![]()
That would work if only one of the 2 primes is in the list of all primes.
|
![]() |
![]() |
![]() |
#10 |
Jun 2022
22 Posts |
![]()
Thank you. I will look into coding it with Python or one of the others you guys recommended.
|
![]() |
![]() |
![]() |
#11 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2,273 Posts |
![]()
In keeping with the title of this thread, even if both primes are in the list you could pinpoint them using Paul’s method with systematic grouping of the primes and then performing the gcd which will give you the greatest common divisor.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRP double checks are also included in the first time list | retina | PrimeNet | 6 | 2017-10-29 01:31 |
Manual testing on CPU list | Fred | PrimeNet | 3 | 2016-02-12 02:49 |
Time needed to factor a 150 digit number | ladderbook | Factoring | 14 | 2008-11-27 13:02 |
Is it time for a 100M digit option? | petrw1 | PrimeNet | 60 | 2008-09-30 22:43 |
50 Digit Testing | wblipp | ElevenSmooth | 1 | 2003-11-15 23:53 |