Can anyone tell me how to write a program that breaks down all numbers into their prime factors?????????????????????????? Please help if you know anything that could help. Thanks.
This is a discussion on writing a program that gives prime factorization of numbers above0 within the C++ Programming forums, part of the General Programming Boards category; Can anyone tell me how to write a program that breaks down all numbers into their prime factors?????????????????????????? Please help ...
Can anyone tell me how to write a program that breaks down all numbers into their prime factors?????????????????????????? Please help if you know anything that could help. Thanks.
Use modulos. And next time, ask your teacher if you have trouble.
What are you having trouble with? Coming up with an algorithm to perform the prime factorization? Implementing the factorization?