Project Euler Homework
|
The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property. More...
Go to the source code of this file.
Functions | |
unsigned | slice_perm (perm043 &perm, idx begin, idx end) |
unsigned long long | sum (set< unsigned > &numbers) |
int | main () |
The number, 1406357289, is a 0 to 9 pandigital number because it is made up of each of the digits 0 to 9 in some order, but it also has a rather interesting sub-string divisibility property.
Let d1 be the 1st digit, d2 be the 2nd digit, and so on. In this way, we note the following:
Find the sum of all 0 to 9 pandigital numbers with this property.
Definition in file 043.cpp.