PlummersSoftwareLLC / Primes

Prime Number Projects in C#/C++/Python
https://plummerssoftwarellc.github.io/PrimeView/
2.43k stars 575 forks source link

Fixed bug in output #918

Closed kostyakozko closed 1 year ago

kostyakozko commented 1 year ago

Description

Fixed output bug in CPP solution 3

Contributing requirements

rbergen commented 1 year ago

@kostyakozko Thank you for proposing a fix to a perceived bug. However, the current calculation of "average" is correct. This is because the number in that particular line of output is the average time spent per pass, not the average number of passes per second.

You can refer to @davepl's original C++ solutions (1 and 2) for comparison; they also calculate the average in the exact same way.

kostyakozko commented 1 year ago

Thank you, I've missed the point