this is a recode of my code for project euler