Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
animeshk
· 9y ago · 0 comments
When a test is contrapositive, it's actually testing for composites. So technically, it should output True for composite but then, the name isPrime doesn't do justice. So I changed the outputs to strings 'Prime' and 'Composite'.
Comments
No comments yet.
Better HN