I\'m finding massive performance differences between similar code in C anc C#.
The C code is:
#include #include #inclu
To see if the loop is being optimised away, try changing your code to
root += Math.Sqrt(i);
ans similarly in the C code, and then print the value of root outside the loop.