Class algoritms Eratosthenes