1. 수를 입력받아 입력 받은 수가 소수인지 판별하기 포인트 : 소수는 자기자신과 1로만 나누어짐을 이용. 나누는 수가 2개뿐이다. import java.util.Scanner; class Test_1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("수를 입력하시오 : "); int a = sc.nextInt(); int i =1; int cnt =0; while(i