def get_list_of_primes_pre_calc(gen):
    """
    Same as get list of primes, but used when prime sieve is already done
    :param gen: The prime sieve
    :return: A list containing only the prime numbers
    """
    return [ind for ind, i in enumerate(gen) if i]