Project Euler – Highly divisible triangular number (Part 1)

screenshot_79.png

This is my first shot…I solved the problem by brute force, but my solution runs forever. Almost 1 hour!

screenshot_84.png
A nice reminder why finding a decent algorithm is priceless.

screenshot_83.png
Therefore only “Part 1”. This has to be faster. Meanwhile…

screenshot_82.png

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s