Solution to euler19