finished Project Euler 19