Euler39 in python and julia