Class Variable Inheritance Python Program For Prime