12 return x;
13 }
14 public long run() {
15 long x = 600851475143;16 while (true) {
17 long y = smallestFactor(x);
18 if (y < x) {
C# 7 and above allows you to use underscores within numeric literals. This makes it easy to comprehend any hardcoded numerics at a glance, thereby improving your code's readability.
var num = 10000000; // Numeric literal has 8 or more digits
var num = 1_00_00_000;