赞
踩
- public function Prime(n as interger) as boolean
- dim i as interger
- for i = 2 to n-1
- if n mod i = 0 then
- Prime = false
- exit function
- end if
- next i
- Prime = true
- end function
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。