Originally posted by: mugs
You could easily write such a program, no idea how long it would take to run though.
Originally posted by: byosys
Oh and the above link chokes on the number that he gave us...apparently its larger than the 50 digits I quoted above. I just kinda estimated and was wrong.
Prime FactorizationOriginally posted by: byosys
Any guesses as to how long a "damn long time" is? If its months/years, it won't be worth it cause I will have graduated. If it's days or so, I may brush up on my JAVA skills and learn how to output the factors to a text file (never got around to learning that).
When the numbers are very large, no efficient algorithm is known; a recent effort which factored a 200 digit number (RSA-200) took eighteen months and used over half a century of computer time
Apparently nobody appreciates this but me. :beer:Originally posted by: Heisenberg
Sure, let me fire up my quantum computer and I'll get back to you. 😛
Guess not. 😉Originally posted by: AStar617
Apparently nobody appreciates this but me. :beer:Originally posted by: Heisenberg
Sure, let me fire up my quantum computer and I'll get back to you. 😛
Originally posted by: byosys
Looking for a simple program that will factor pretty large numbers (50 digits). As a last day joke, my math teacher threw up a string of numbers and said whoever prime factored it first got some extra credit. Needless to say, I want that extra credit.
Thanks.
Originally posted by: Heisenberg
Guess not. 😉Originally posted by: AStar617
Apparently nobody appreciates this but me. :beer:Originally posted by: Heisenberg
Sure, let me fire up my quantum computer and I'll get back to you. 😛
OP, if you haven't figured it out by now, your teacher is playing a joke on you. Prime factoring a 200 digit number is extremely time consuming.
Originally posted by: byosys
74037563479561712828046796097429573142593188889231289084936232638972765 034028266276891996419625117843995894330502127585370118968098286733173273 108930900552505116877063299072396380786710086096962537934650563796359
I hope I typed that in right...word tells me its 200+ digits, so I guess my estimate of 50 was off by just a little bit. If you do write the app, would you mind emailing it along with the source to byosys@gmail.com? I want to see how different your code is from mine.
Edit: notice I added spaces for formatting issues, so a straight copy/paste won't work.
Well, impossible is a very hard word. With enough computing power and time, it could be done. But yeah, from any kind of practical point of view, you're better off flapping your arms and trying to fly to get that extra credit.Originally posted by: chuckywang
Originally posted by: Heisenberg
Guess not. 😉Originally posted by: AStar617
Apparently nobody appreciates this but me. :beer:Originally posted by: Heisenberg
Sure, let me fire up my quantum computer and I'll get back to you. 😛
OP, if you haven't figured it out by now, your teacher is playing a joke on you. Prime factoring a 200 digit number is extremely time consuming.
If by extremely time consuming you mean impossible, then yes.
Originally posted by: MattCo
Originally posted by: byosys
74037563479561712828046796097429573142593188889231289084936232638972765 034028266276891996419625117843995894330502127585370118968098286733173273 108930900552505116877063299072396380786710086096962537934650563796359
I hope I typed that in right...word tells me its 200+ digits, so I guess my estimate of 50 was off by just a little bit. If you do write the app, would you mind emailing it along with the source to byosys@gmail.com? I want to see how different your code is from mine.
Edit: notice I added spaces for formatting issues, so a straight copy/paste won't work.
It will probably be ALOT different considering you haven't wrote any yet. 😛