move `isprime` function to separate module
Merge pull request #1 from mndvns/mndvns

move `isprime` function to separate module