Improve check_primes_initialised_to functionality