rewrite eratosthen