p1 euler using java