RosettaCodeData/Task/Babbage-problem/AutoHotkey/babbage-problem.ahk
2026-02-01 16:33:20 -08:00

11 lines
187 B
AutoHotkey

; Give n an initial value
n = 519
; Loop this action while condition is not satisfied
while (Mod(n*n, 1000000) != 269696) {
; Increment n
n++
}
; Display n as value
msgbox, %n%