Project Euler : Adding missing Util method