Comment on Writing an RPC from Scratch (2021)parentComments−stevekemp3yI notice that the comment refers to sqrt(number), but never does that either. So it tests way more numbers than it needs to.−rwwiv3yIt does use sqrt(number), just not directly. Instead of taking sqrt(number), it just calculates i*i which is much faster.−stevekemp3yD'oh, you're 100% correct!
Comments
I notice that the comment refers to sqrt(number), but never does that either. So it tests way more numbers than it needs to.
It does use sqrt(number), just not directly. Instead of taking sqrt(number), it just calculates i*i which is much faster.
D'oh, you're 100% correct!