Improved Flatten extensions
Implemented series of prime numbers using the Sieve of Eratosthenes