Skip to main content
removed bad word
Source Link
Caridorc
  • 27.6k
  • 7
  • 54
  • 135

Please comment on this code for generating Generating prime numbers within a range in C++

I was given a problem to find out all the prime numbers within a range. Just after I wrote the program I found numerous other codes to solve the problem. I am interested to know is my algorithm efficient? Is it like sieve filtration? (before writing this code I had no clear idea on sieve filtration method) or the algorithm I used is a crapbad?

Please comment on this code for generating prime numbers within a range

I was given a problem to find out all the prime numbers within a range. Just after I wrote the program I found numerous other codes to solve the problem. I am interested to know is my algorithm efficient? Is it like sieve filtration? (before writing this code I had no clear idea on sieve filtration method) or the algorithm I used is a crap?

Generating prime numbers within a range in C++

I was given a problem to find out all the prime numbers within a range. Just after I wrote the program I found numerous other codes to solve the problem. I am interested to know is my algorithm efficient? Is it like sieve filtration? (before writing this code I had no clear idea on sieve filtration method) or the algorithm I used is bad?

spaces after punctuation, text was hard to read...
Source Link

I was given a problem to find out all the prime numbers within a range.Just Just after I wrote the program I found numerous other codes to solve the problem.I I am interested to know is my algorithm efficient?is Is it like sieve filtration?  (before writing this code I had no clear idea on sieve filtration method)or or the algorithm I used is a crap.:P?

I was given a problem to find out all the prime numbers within a range.Just after I wrote the program I found numerous other codes to solve the problem.I am interested to know is my algorithm efficient?is it like sieve filtration?(before writing this code I had no clear idea on sieve filtration method)or the algorithm I used is a crap.:P

I was given a problem to find out all the prime numbers within a range. Just after I wrote the program I found numerous other codes to solve the problem. I am interested to know is my algorithm efficient? Is it like sieve filtration?  (before writing this code I had no clear idea on sieve filtration method) or the algorithm I used is a crap?

edited tags
Link
Loading
added 649 characters in body
Source Link
Loki Astari
  • 96.6k
  • 5
  • 125
  • 338
Loading
Tweeted twitter.com/#!/StackCodeReview/status/135588001400111105
code corrected..
Source Link
N. F.
  • 215
  • 3
  • 8
Loading
code corrected..
Source Link
N. F.
  • 215
  • 3
  • 8
Loading
Post Migrated Here from stackoverflow.com (revisions)
Source Link
MiNdFrEaK
  • 215
  • 3
  • 8
Loading