Calculates and stores prime numbers efficiently