Update isprime.py

Added notes for algorithm