求100以内的素数
i =2 while (i< 100): j=2 while (j<=(i/j)): if not (i%j): //i%j为0是就break break j = j+1 if(j>i/j): print i,"是素数" i = i+1