Timeline for Random Prime generator
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 30, 2012 at 16:23 | vote | accept | Frank | ||
Dec 28, 2012 at 21:42 | comment | added | Frank | I am not a fan of ternary's so i'll stick to the suggestion of Donald on this one, but Thx,to both of you for the constructive feedback. | |
Dec 28, 2012 at 20:23 | comment | added | MrLore |
That if-else statement can be reduced to a ternary to save a line: min += (min % 2 == 0) ? 1 : 2; .
|
|
Dec 28, 2012 at 16:28 | comment | added | Adam |
and while we're at it, min += 1 can and should be min++
|
|
Dec 28, 2012 at 16:03 | history | answered | Donald.McLean | CC BY-SA 3.0 |