triangle numbers in python

前端 未结 6 1333
别那么骄傲
别那么骄傲 2020-12-08 17:38

I\'m trying to solve the problem:

What is the value of the first triangle number to have over five hundred divisors?

A trian

6条回答
  •  旧巷少年郎
    2020-12-08 18:17

    You'll have to think more and use less brute force to solve Project Euler questions.

    In this case you should investigate which and how many divisors triangle numbers have. Start at the beginning, look for patterns, try to understand the problem.

提交回复
热议问题