Project Euler.

Solutions of problems 43, 46 and 47.