utilities to help with euler and other problems