Sequence of non-squares: Difference between revisions

no edit summary
(Add Miranda)
No edit summary
Line 2,132:
none found {1001,1002001}
</pre>
 
=={{header|Phixmonti}}==
<syntaxhighlight lang="Phixmonti">include ..\Utilitys.pmt
 
def non-sq dup sqrt 0.5 + int + enddef
 
22 for dup print ", " print non-sq ? endfor
 
1000000 for
non-sq sqrt dup int == if "Square found." ? exitfor endif
endfor</syntaxhighlight>
{{out}}
<pre>1, 2
2, 3
3, 5
4, 6
5, 7
6, 8
7, 10
8, 11
9, 12
10, 13
11, 14
12, 15
13, 17
14, 18
15, 19
16, 20
17, 21
18, 22
19, 23
20, 24
21, 26
22, 27
 
=== Press any key to exit ===</pre>
 
=={{header|PHP}}==
57

edits