[求助]PB新手的一个简单问题

我用下面的程序为什么不可以啊?


int m
int i=2
int f=0
m=integer(sle_1.text)
int n=integer(m/2)
if m=0 or m=1 then
messagebox("验证素数",string(m)+"不是素数!")
else
for i=2 to n step 1
if m/i=integer(m/i) then
f=1
exit
else
f=0
end if
next
end if
if f=0 then
messagebox("验证素数",string(m)+"是素数!")
else
messagebox("验证素数",string(m)+"不是素数!")
end if
高手请指点一下。先谢过了!!
