Dim k As Integer
Private Sub Command1_Click()
s = 0
For i = (k + 1) * 100 + 1 To 2 * (k + 1) * 100 Step 2
t = 1
For j = 2 To Sqr(i)
If i Mod j = 0 Then t = 0: Exit For
Next j
If t = 1 Then s = s + i
Next i
Text1 = s
End Sub
Private Sub Option1_Click(Index As Integer)
k = Index
End Sub