Jump to content

Sort primes from list to a list: Difference between revisions

Line 83:
 
Temp = sort(Temp)
? showarray(Temp)
? "done..."
 
func showArray(array)
txt = ""
see "["
for n = 1 to len(array)
txt = txt + array[n] + ","
next
txt = left(txt,len(txt)-1)
txt = txt + "]"
? txt
</lang>
{{out}}
Line 90 ⟶ 100:
working
Primes are:
[2,7,13,43,103]
2
7
13
43
103
done...
</pre>
2,468

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.