Option Explicit
Private Sub Form_Click()
Dim n As Integer,x As Integer,y As Integer
n = Val(InputBox("请输入一个大于100的偶数","输入数据",100))
For x = 3 To n 2 Step 2
'
If x Mod k = 0 Then flag = False:Exit Do
k = k + 1
Loop
nflag = flag
End Function
Option Explicit
Private Sub Form_Click()
Dim n As Integer,x As Integer,y As Integer
n = Val(InputBox("请输入一个大于100的偶数","输入数据",100))
For x = 3 To n 2 Step 2
'
If x Mod k = 0 Then flag = False:Exit Do
k = k + 1
Loop
nflag = flag
End Function