From 0be301c49c533ed6877128a00496c98284d663aa Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Thu, 30 May 2019 18:54:26 -0400 Subject: [PATCH] example solution --- nthprime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nthprime.py b/nthprime.py index a16a5c2..5973c67 100644 --- a/nthprime.py +++ b/nthprime.py @@ -15,4 +15,5 @@ def isprime(m): def nthprime(n): '''receives an int and gives an int back''' - pass + primes = [k for k in range(2, n**4) if isprime(k)] + return primes[n]