completed basic functionallity for nth_prime project