euler3 is correct but too slow to function