Inheritance Example Program In Python For Prime