소수 (1) 썸네일형 리스트형 1978 소수 찾기 (JAVA) 내가 쓴 답안 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int testCase = scanner.nextInt(); int[] numberList = new int[testCase]; for(int i = 0; i< testCase ; i++) { numberList[i] = scanner.nextInt(); } int count = 0; for(int j = 0; j < numberList.length; j++) { int trueOrFalse= isPrime(numberList[j]); if(trueOrFalse .. 이전 1 다음