Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,13 +1,13 @@
object BabbageProblem {
def main( args:Array[String] ): Unit = {
var x : Int = 524 // Sqrt of 269696 = 519.something
while( (x * x) % 1000000 != 269696 ){
if( x % 10 == 4 ) x = x + 2
else x = x + 8
}
println("The smallest positive integer whose square ends in 269696 = " + x )
}
}