标签:
#!/bin/bash i=2 while ((i<=100));do j=2 while ((j<=i/2));do if ((i%j==0));then break fi let j++ done if ((j>i/2));then echo $i fi let i++ done
用shell写个100以内的所有数字之和
原文地址:http://www.cnblogs.com/x113/p/4266704.html