solve eratoshenes problem