Ian Dorian Macleod
Problem 7
Problem Statement

By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.

What is the 10 001st prime number?

url: https://projecteuler.net/problem=7
Approach
Python implementation

import math

res = 0

def prime(x):
    for i in range(2,math.ceil(math.sqrt(x))+1):
        if x % i == 0: 
            return False
    return True

def big_prime(x):
    primes = []
    primes.append(1)
    while (len(primes) < x):
        last = primes[-1]
        while(1):
            last = last+1
            if prime(last): break
        primes.append(last) 
    return primes[-1]

res = big_prime(10001)

print("Answer is " + str(res))
You can also download the source code for this problem here and compile it on your local machine.
Further Analysis