Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -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 )
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue