finished euler7, made euler1 more concise