判断质数

package com.guoba.testhello;

public class zhishu {
    public static void main(String[] args) {
        int[] arr1= new int[100];
        int[] arr2= new int[100];
        for (int i = 0; i<100;i++){
            if (i% 2 ==0){
                arr1[i] = i;
                System.out.print(arr1[i]+"\t");

            }else {
                arr2[i] = i;
                System.out.print(arr2[i]+"\t");
                System.out.println();
            }

        }
posted @ 2021-12-13 20:04  锅巴编程  阅读(22)  评论(0编辑  收藏  举报