prime number function.
First attempt at defix function.