Prime factorization for large numbers

Click For Summary
SUMMARY

The discussion centers on the challenge of factorizing large numbers, specifically those with up to 200 decimal digits, such as 909091 followed by 150 zeros. The user initially struggled with Wolfram Alpha and Python programming but discovered that the core problem was the presence of zeros in the numbers. The solution involves eliminating zeros and using existing factorization codes. The user successfully factorized the number into 909091*2^150*5^150 and suggests that for complex cases, contacting expert Carl Pomerance may be beneficial.

PREREQUISITES
  • Understanding of integer factorization techniques
  • Familiarity with Python programming for coding solutions
  • Knowledge of using Wolfram Alpha for mathematical computations
  • Basic concepts of prime factorization and exponentiation
NEXT STEPS
  • Learn advanced integer factorization algorithms such as Pollard's rho algorithm
  • Explore Python libraries like SymPy for symbolic mathematics and factorization
  • Research methods for optimizing large number computations
  • Investigate the use of spreadsheets for batch processing of factorization tasks
USEFUL FOR

Mathematicians, computer scientists, and programmers interested in number theory and efficient algorithms for factorizing large integers.

aalireza
Messages
5
Reaction score
0
I need to factorize large numbers (some of them have about 200 decimal digits). Wolfram alpha is a dead end and programming with python is not working for me too. Any suggestions?
 
Mathematics news on Phys.org
Oops. Sorry! I did miss a REALLY important thing(!): they are really so simple/silly! They are full of zeros, for example one of them is 909091 with 150 zeros after it, so the only problem would be factorizing 909091 and that's not a big deal. so the answer of the given number will be 909091*2^150*5^150. There is a list of them (523 numbers) and they are between 100 and 200 digits and most of them are really simple to solve ... But my problem is that I don't want to factorize them myself.

+ I think If I eliminate zeros and then factorize it with current codes, it can be done. but It's a new thing for me and I don't know how to do it properly!
 
Factoring small numbers like that is really just a process of searching through the possible prime factors up to the square root of the number. You can write a code to do it or use existing codes. Why didn't Wolfram Alpha work for you? It did for me. The example you listed is prime. See this link:

http://www.wolframalpha.com/input/?i=factor[909091]
 
I did the damn thing, I just entered the non-zero part in Wolfram and factorize the rest of them myself.

---
@Bill Simpson & @phyzguy:
Of course, if you enter :
http://www.wolframalpha.com/input/?i=factor(987654320987654321*2^180*5^180

It will give you the answer, but The numbers weren't in this form and there is not enough room for all the zeros to be entered in Wolfram:
http://www.wolframalpha.com/input/?...000000000000000000000000000000000000000000000

, and second, there was 523 of them and That's why I said I want to eliminate all zeros and write a code for them... Because It was a nightmare to enter them one by one, I wanted to give the .ods to that program and get the answers as fast as possible... anyways, It's done now! :-)
 
if you ever have a real challenge to factor large numbers, write Carl Pomerance and ask him.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
26
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 12 ·
Replies
12
Views
5K