Fast Enterprises Interview Question

Write a function for calculating prime numbers at position n given n.