Yeah, I think this will satisfy anyone who wanted to do prime factorization of any number they wanted.
Thanks for your help.
Type: Posts; User: jwall
Yeah, I think this will satisfy anyone who wanted to do prime factorization of any number they wanted.
Thanks for your help.
Doing that now, but is there a more intuitive way of factoring negative numbers instead of just printing a negative one?
Can you elaborate? I want to try it.
Tried that and the out put was a bit funny.
-1
prime factorization of 97
97
This function will take a number (n) and give you its prime factorization.
It runs fine, but I have a sneaking suspicion that there is a more "intuitive" way for the program to take the prime...