标签:
#!/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
标签:
原文地址:http://www.cnblogs.com/x113/p/4266704.html