working through problems of euler project