Euler mathematical problems solved using Python