Added problem 46

This adds the solution to problem 46 and introduces an “IsPrime”
function to the primes collection