728x90 ๋ฐ์ํ ์๋ฐ 116531 [java ๋ฐฑ์ค] ์ค๋ฒ 4/11653๋ฒ ์์ธ์๋ถํด https://www.acmicpc.net/problem/11653 11653๋ฒ: ์์ธ์๋ถํด ์ฒซ์งธ ์ค์ ์ ์ N (1 ≤ N ≤ 10,000,000)์ด ์ฃผ์ด์ง๋ค. www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for (int i = 2; i 2021. 9. 16. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ