[백준 1929] 소수 구하기 JAVA
·
코딩테스트/백준
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int start = 0, end = 0; int cnt = 0; start = sc.nextInt(); end = sc.nextInt(); //소수는 약수를 1과 자기 자신만 가짐 for (int i = start; i