I believe there's a mistake in one of the automatic tests. checkio(1) expects the returned answer to be 1 instead of 2, but 1 is not a prime number (see test screenshot).