Jump to content
  • Advertisement
Sign in to follow this  
Dark Star

Prime Factors and Deciding rolling algorithm

This topic is 4890 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!