Sequence of non-squares: Difference between revisions

Line 2,873:
(This program has not been run to completion.)
 
=={{header|Transd}}==
<lang Scheme>#lang transd
 
MainModule: {
nonsqr: (λ i Int()
(ret (+ i (to-Int (floor (+ 0.5 (sqrt i))))))),
 
_start: (lambda locals: d Double()
(for i in Range(1 23) do
(textout (nonsqr i) " "))
 
(for i in Range(1 1000001) do
(= d (sqrt (nonsqr i)))
(if (eq d (floor d))
(throw String("Square: " i))))
 
(textout "\n\nUp to 1 000 000 - no squares found.")
)
}</lang>
{{out}}
<pre>
2 3 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 26 27
 
Up to 1 000 000 - no squares found.
</pre>
 
=={{header|True BASIC}}==
111

edits