Complete the two problems in projectEuler