Python Code For Prime Number Order