Fast Enterprises interview question

First 100 prime numbers given two functions