created by Aha00aAha00a at 2016-12-21
last modified by Aha00aAha00a at 2026-11-15
revision: 8

Project Euler Problem30

http://projecteuler.net/index.php?section=problems&id=30

Digit fifth powers

놀랍게도 각 숫자의 4승의 합이 같은 수는 3개 밖에 없다.

$___$1634 = 1^4 + 6^4 + 3^4 + 4^4 \\ 8208 = 8^4 + 2^4 + 0^4 + 8^4 \\ 9474 = 9^4 + 4^4 + 7^4 + 4^4$___$

$___$1 = 1^4$___$
은 포함하지 않는다.

이 세 수의 합은

$___$1634 + 8208 + 9474 = 19316$___$
이다.

각 숫자의 5승의 합이 같은 수들을 찾아 합을 구하라.

1. Solution

443839
(2 to 1000000).filter(i => i.toString.map(Character.getNumericValue).map(Math.pow(_, 5)).sum == i).sum

1817ms 걸린다. --2016-12-21

2. See Also

2.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

  • 42.25% ProjectEulerProblem34 map(2:3), sum(2:2), 합이(2:2), 같은(2:1), 숫자의(2:1), euler(1:2), project(1:2), character(1:1), digit(1:1), filter(1:1)
  • 39.02% ProjectEulerProblem16 sum(2:3), map(2:1), 합은(1:2), character(1:1), euler(1:1), get(1:1), id(1:1), index(1:1), net(1:1), numeric(1:1)
  • 31.13% ProjectEulerProblem13 sum(2:3), map(2:1), digit(1:1), euler(1:1), id(1:1), index(1:1), net(1:1), php(1:1), problems(1:1), project(1:1)

2.3. Adjacent Pages

≤ 32
all
1.0x
1.0x
80
-120
ON
0/0
0/0
0.00
0
0 / 0
1.00x