Java实现求质数(素数) 题目要求: 输出0-100以内的所有质数(素数)。 质数:只能被 1 和它本身整除的数。 1不是素数也不是合数。 代码实现: public class PrimeNumber { public static void main(String[] args) { Boolean flag = true; // long start = System.currentTimeMillis(); for(int i = 2;i <= 100;i++){ for(int j =