Example #1
0
def main():
    return nth_prime(10001)
def test_nth_prime():
    for j, p in enumerate(small_primes, 1):
        assert_equal(nth_prime(j), p)
    assert_equal(nth_prime(-2), 0)