c coding for Euler project