如何檢查Forth中的primality? 這裏是我現在用的,但它得到緩慢的具有更高編號: : prime (n - f)
DUP 2 < IF
DROP 0 EXIT
THEN
DUP 2 ?DO
DUP I I * < IF
DROP -1 LEAVE
THEN
DUP I MOD 0= IF
DRO
當我嘗試在Unix(和Windows)上包含一個文件時,它將包含空格時不起作用。例如,這些將不起作用: include ~/Space Folder/test.fs
include ~/Space\ Folder/test.fs
include "~/Space Folder/test.fs"
include "~/Space\ Folder/test.fs"
include C:\Use