Takes a user input and returns the nth prime of that number