Update read_file_line to use index.
aks_test_for_primes to use index.