Project Euler Homework
Classes | Functions | Variables

030.cpp File Reference

Find the sum of all the numbers that can be written as the sum of fifth powers of their digits. More...

#include <iostream>
#include <algorithm>

Go to the source code of this file.

Classes

class  digits

Functions

int main ()

Variables

const int MAX = 7

Detailed Description

Find the sum of all the numbers that can be written as the sum of fifth powers of their digits.

Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:

Definition in file 030.cpp.


Function Documentation

int main ( )

It is impractical to search to infinity due to limited memory; we have to guess the upperlimit ourselves.

Definition at line 109 of file 030.cpp.

 All Classes Files Functions Variables