Update isprime function

New isprime function, using fast prime algorithm.
Merge pull request #1 from viniciusmarangoni/master

Update isprime function