Write Response Code In Python For Prime