n=5;count=2;i=3;j=2;
while (count <= n):
for j in range (2,i):
if(i%j == 0):
break
if(j==i):
print i
count = count +1
i = i+1
我想找到前n个素数,但不知怎的,这段代码似乎没有编译。
这是我从谷歌搜索有,但显然这不是我所需要的: - (void)applicationDidFinishLaunching:(UIApplication *)application
{
// add the tab bar controller to the window
[window addSubview:[tabBarController view]];
// load the