euler3 optimized for speed