Fast Enterprises Interview Question

First 100 prime numbers given two functions