A problem in Project Euler | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

A problem in Project Euler

Hi guys,I Have just discovered the site "Project Euler" and it's fun and really challenging but I have a serious problem with a few of its math problems: It says: Find the largest number that is the sum of 3 triangle numbers. What does it mean the largest number???! We don't have such number! it's indefinite!

17th Sep 2017, 4:32 AM
keivan Ipchi
keivan Ipchi - avatar
5 Answers
+ 4
In problem 41, the largest number cannot be more than 9 digits. You cannot use the same digit more than once, so 987654321 is okay, but 9986651.. is not. So the answer is not indefinite. The twist to this challenge is that you have to find the largest one that is a prime. 987654321 is not a prime, so that can't be the largest pandigital number. (0 is excluded).
18th Sep 2017, 10:33 PM
Rrestoring faith
Rrestoring faith - avatar
+ 5
What was the Problems ID number? (Just so I can check if there's restrictions to the numbers size, and what a triangle number is)
17th Sep 2017, 4:49 AM
Rrestoring faith
Rrestoring faith - avatar
+ 3
Problem 41 for example
18th Sep 2017, 5:22 AM
keivan Ipchi
keivan Ipchi - avatar
+ 3
for example 3,4,5 are three triangle numbers
18th Sep 2017, 5:23 AM
keivan Ipchi
keivan Ipchi - avatar
+ 3
Thanks a lot.
2nd Oct 2017, 5:03 AM
keivan Ipchi
keivan Ipchi - avatar