Spiral Code In Python For Prime