Sort primes from list to a list: Difference between revisions
Content added Content deleted
Line 83: | Line 83: | ||
Temp = sort(Temp) |
Temp = sort(Temp) |
||
showarray(Temp) |
|||
? "done..." |
? "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> |
</lang> |
||
{{out}} |
{{out}} |
||
Line 90: | Line 100: | ||
working |
working |
||
Primes are: |
Primes are: |
||
[2,7,13,43,103] |
|||
2 |
|||
7 |
|||
13 |
|||
43 |
|||
103 |
|||
done... |
done... |
||
</pre> |
</pre> |