Nzec in Chef and primes (Python3)

I m getting NZEC error in pyhton3 (for Chef and Primes) although the code is running perfectly on my system.
There in no single line space separated values in the Input too. Any suggestions. Thanks in advance