You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I actually found your post online about project euler and found it useful, granted I don't quite understand the math. I did notice in issue in your code, while you do get the correct answer if you are to call num_divisors(2) you get 1 which would be incorrect right? You have 1 and itself as the number of divisors for numbers including anything else as well. When you make that change your solution would not work.
Hey Jason,
I actually found your post online about project euler and found it useful, granted I don't quite understand the math. I did notice in issue in your code, while you do get the correct answer if you are to call num_divisors(2) you get 1 which would be incorrect right? You have 1 and itself as the number of divisors for numbers including anything else as well. When you make that change your solution would not work.
Here is the link I was browsing btw: http://code.jasonbhill.com/sage/project-euler-problem-12/
The text was updated successfully, but these errors were encountered: