Binary File Handling Program In Python For Prime