Skip to main content
Notice removed Reward existing answer by xnor
Bounty Ended with Sisyphus's answer chosen by xnor
Notice added Reward existing answer by xnor
Bounty Started worth 200 reputation by xnor
Added kc tag
Link
Leo
  • 12.8k
  • 1
  • 31
  • 62
Tweeted twitter.com/#!/StackCodeGolf/status/558314242693402624
Added code-golf tag
Link
Ventero
  • 10.1k
  • 3
  • 24
  • 55
added 144 characters in body
Source Link
Delan Azabani
  • 801
  • 1
  • 6
  • 6

This is my first code golf question, and a very simple one at that, so I apologise in advance if I may have broken any community guidelines.

The task is to print out, in ascending order, all of the prime numbers less than a million. The output format should be one number per line of output.

The aim, as with most code golf submissions, is to minimise code size. Optimising for runtime is also a bonus, but is a secondary objective.

This is my first code golf question, and a very simple one at that, so I apologise in advance if I may have broken any community guidelines.

The task is to print out, in ascending order, all of the prime numbers less than a million. The output format should be one number per line of output.

This is my first code golf question, and a very simple one at that, so I apologise in advance if I may have broken any community guidelines.

The task is to print out, in ascending order, all of the prime numbers less than a million. The output format should be one number per line of output.

The aim, as with most code golf submissions, is to minimise code size. Optimising for runtime is also a bonus, but is a secondary objective.

deleted 359 characters in body; edited tags
Source Link
Delan Azabani
  • 801
  • 1
  • 6
  • 6
Loading
added 373 characters in body
Source Link
Delan Azabani
  • 801
  • 1
  • 6
  • 6
Loading
Source Link
Delan Azabani
  • 801
  • 1
  • 6
  • 6
Loading