Update Euler403.java

Optimized