User profile: chirumer

User info
User name:chirumer
History
Joined:
Number of posts:13
Latest posts:

Am I on the right track?
Why overload the operator at all? It could clash with somebody else's overload, couldn't it? Wouldn'...

[code review] finding prime numbers
I had never thought about this. Suppose the square root of 169 is represented as 12.9999 (suppose ...

[code review] finding prime numbers
@lastchance sqrt( N + 0.5 ) Why are we adding 0.5?

[code review] finding prime numbers
@seeplus When i = upper_bound - 2 Then j starts at upper_bound (i+2). But because of j < upper_bound...

[code review] finding prime numbers
[quote=lastchance]Use a sieve.[/quote]Thanks! [code] std::vector<int> primes; for (int i = 2;...