Tinkering with some ProjectEuler algorithms