蓝桥杯--分解质因数(BASIC-16)

蓝桥杯--分解质因数(BASIC-16)_第1张图片

import java.util.Scanner;
import java.math.*;
import java.lang.*;
public class Main {
	public static void main(String args[]){
		Scanner reader = new Scanner(System.in);
		int a = reader.nextInt();
		int b = reader.nextInt();
		int zs[] = new int [10100];                 //质数表
		int arr[][] = new int[10100][100];		    //储存分解式
		zs[0] = 2;
		int count_1 = 1;
		int count_2 = 0;
		int count_3 = 0;
		for(int i=2; i


你可能感兴趣的:(基础算法,质数分解,循环)