Skip to content

Conversation

@voite1
Copy link
Contributor

@voite1 voite1 commented Nov 27, 2014

Completed HW 8. Will start working on final project later this week.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, python "int" is a "long int" -- i.e. it automatically rolls over to a unlimited precision integer -- so only limit is computation time.

But there is a bug -- it reports True for some even numbers::
In [8]: for i in range(10):
...: print i, __is_prime(i)
...:
0 False
1 False
2 True
3 True
4 True
5 True
6 True
7 True
8 True
9 False

PythonCHB added a commit that referenced this pull request Nov 29, 2014
@PythonCHB PythonCHB merged commit 13177d4 into UWPCE-PythonCert:master Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants