Sign in to follow this  
Dark Star

Prime Factors and Deciding rolling algorithm

Recommended Posts

Hi Guys, I have forgotten how to implement an algorithm for finding the prime factors of a number. I have tried looking on the internet but cannot find it. Can some please write down the algorithm in either code or pseudocode, and for the dice rolling algorithm. Thanks DarkStar UK

Share this post


Link to post
Share on other sites
I dont think you looked very hard... It took me about 30 seconds to google this

they keywords I used are "Prime factorization c++"

google is your friend.

http://erichmusick.com/html/resources/cpp/lab21.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this