RosettaCodeData/Task/Babbage-problem/Elena/babbage-problem.elena

15 lines
174 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import extensions;
import system'math;
2026-02-01 16:33:20 -08:00
public Program()
2023-07-01 11:58:00 -04:00
{
var n := 1;
2024-03-06 22:25:12 -08:00
until(n.sqr().mod(1000000) == 269696)
2023-07-01 11:58:00 -04:00
{
n += 1
};
2025-08-11 18:05:26 -07:00
Console.printLine(n)
2023-07-01 11:58:00 -04:00
}