Advertisement Jump to content
Sign in to follow this  
Dark Star

Prime Factors and Deciding rolling algorithm

This topic is 4984 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!