Skip to main content
9 events
when toggle format what by license comment
Nov 25, 2018 at 21:25 answer added user33306 timeline score: 1
Nov 25, 2018 at 9:19 comment added rossum There is only one even prime number: 2. All other prime numbers are odd. That means you can halve the amount of work you have to do by not bothering to look at even numbers > 2.
Nov 25, 2018 at 0:59 history edited 200_success CC BY-SA 4.0
deleted 2 characters in body; edited tags; edited title
Nov 24, 2018 at 23:52 comment added Calak Plus you have two " ` " character making your code unable to compile. Otherwise, a small advise: try to look on internet how to find prime numbers (in any language), you chose one of the worst methods and don't comment what's obvious, it make the reading harder (even with code cleaned ). Welcome on Code Review anyway :)
Nov 24, 2018 at 23:00 review Close votes
Nov 25, 2018 at 0:59
Nov 24, 2018 at 22:40 history edited πάντα ῥεῖ CC BY-SA 4.0
added 332 characters in body
Nov 24, 2018 at 22:35 review First posts
Nov 25, 2018 at 0:49
Nov 24, 2018 at 22:34 comment added 200_success Welcome to Code Review. Please fix your indentation. The easiest way to post core is to paste it into the question editor, highlight it, and press Ctrl-K to mark it as a code block. Also tell us what the code accomplishes — see How to Ask.
Nov 24, 2018 at 22:30 history asked Hau Jia Hung CC BY-SA 4.0