Python Function For Prime Number