1。
153
370
371
407
3。
101
103
107
109
113
119
121
127
131
133
137
139
143
149
151
157
161
163
167
169
173
179
181
187
191
193
197
199
用循环
Private Sub Command1_Click()
Dim i
For i = 100 To 999
If Mid(i, 1, 1) ^ 3 + Mid(i, 2, 1) ^ 3 + Mid(i, 3, 1) ^ 3 = i
ThenText1 = Text1 & i & vbCrLf
ElseDoEvents
End IfNext
End SubPrivate Sub Command2_Click()
Dim i
As IngeterFor i = 101 To 200
If i Mod 2 = 0 Or i Mod 3 = 0 Or i Mod 5 = 0
ThenDoEvents
ElseText1 = Text1 & i & vbCrLf
End IfNext
End Sub