solutions for euler problems. may not be optimal.