node_ids listlengths 4 1.4k | edge_index listlengths 1 2.22k | text listlengths 4 1.4k | source stringlengths 14 427k |
|---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
4,
13,
13,
40,
13,
4,
18,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.next());\n\t\t\n\t\tint a;\n\t\tint num=0;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta = Integer.parseInt(sc.next());\n\t\t\tif(isPrime(a)) num++;\n\t\t}... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = Integer.parseInt(sc.next());
int a;
int num=0;
for(int i=0;i<N;i++){
a = Integer.parseInt(sc.next());
if(isPrime(a)) num++;
}
System.out.println(num);
}
publ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
8,
4,
13,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
13,
29,
23,
13,
12,
13,
30,
41,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.util.Scanner;\n\n/**\n * Created by shoya on 2017/04/14.\n */\npublic class Main {\n public static void main(String... args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int ans = 0;\n for (int i = 0; i < n; i++)\n ans += (isPrime(sc.next... |
import java.util.Scanner;
/**
* Created by shoya on 2017/04/14.
*/
public class Main {
public static void main(String... args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ans = 0;
for (int i = 0; i < n; i++)
ans += (isPrime(sc.nextInt())) ? 1 : 0;
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint cnt = Integer.parseInt(s.nextLine());\n\t\tint result = 0;\n\t\tfor(int i=0 ; i<cnt ; i++) {\n\t\t\tint number = Integer.parseInt(s.nextLine());\n\t\t\tresult += solve(n... | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int cnt = Integer.parseInt(s.nextLine());
int result = 0;
for(int i=0 ; i<cnt ; i++) {
int number = Integer.parseInt(s.nextLine());
result += solve(number);
}
System.out.printl... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),count=0;\n for(int ii=0;ii<n;ii++){\n int k = sc.nextInt();\n boolean flg = true;\n for(int i=2;i<=Math.sqrt(k);i++){\n ... | import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),count=0;
for(int ii=0;ii<n;ii++){
int k = sc.nextInt();
boolean flg = true;
for(int i=2;i<=Math.sqrt(k);i++){
i... |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
... | [
"import java.util.Scanner;\n\npublic class Main {\n public static int MAX = 100000;\n public static boolean isPrime(int num){\n if(num < 2)\n return false;\n if(num == 2)\n return true;\n if(num % 2 ==0)\n return false;\n for(int i = 3;i * i <= num;... | import java.util.Scanner;
public class Main {
public static int MAX = 100000;
public static boolean isPrime(int num){
if(num < 2)
return false;
if(num == 2)
return true;
if(num % 2 ==0)
return false;
for(int i = 3;i * i <= num;i += 2){
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
114,
11
],
[
114,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt( br.rea... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
int n = Integer.parseInt( br.readLine() );
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
4,
18,
13,
13,
2,
17,
13,
1,
40,
13,
30,
30,
14,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tScanner scanner = new Scanner(System.in);// ??\\?????????????????????\n\t\tint count = scanner.nextInt();\n\t\tint flag = 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++){\n\t\t\tint num = scanner.nextInt();\n... | import java.util.Scanner;
class Main {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);// ??\?????????????????????
int count = scanner.nextInt();
int flag = 0;
for(int i = 0; i < count; i++){
int num = scanner.nextInt();
for(int j = (int) Math.sqrt(... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint cnt=0;\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(isPrime(sc.nextInt())) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\tstatic boolean isPrime(int x){\n... | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int cnt=0;
for(int i=0; i<N; i++){
if(isPrime(sc.nextInt())) cnt++;
}
System.out.println(cnt);
}
static boolean isPrime(int x){
int i, s;
if(x==2){
return tr... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
17,
13,
30,
14,
4,
18,
13,
4,
18,
13,
30,
40,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
17,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n PrimeNumber PN = new PrimeNumber();\n \n while(0 < a){\n if(PN.getPN(sc.nextInt())){\n ... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
PrimeNumber PN = new PrimeNumber();
while(0 < a){
if(PN.getPN(sc.nextInt())){
PN.result++... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
35,
13,
34,
17,
1,
29,
17,
34,
17,
1,
29,
17,
34,
1,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
]... | [
"import java.util.*;\n\npublic class Main {\n\tpublic static boolean is_prime(int x){\n\t\tswitch(x){\n\t\tcase 2 : return true;\n\t\tcase 3 : return true;\n\t\tdefault:\n\t\t\tfor(int e = 2 ; e <= Math.sqrt(x) ; e++){\n\t\t\t\tif(x % e ==0) return false;\n\t\t\t}\n\t\treturn true;\n\t\t\n\t\t}\n\t}\n\tpublic stati... | import java.util.*;
public class Main {
public static boolean is_prime(int x){
switch(x){
case 2 : return true;
case 3 : return true;
default:
for(int e = 2 ; e <= Math.sqrt(x) ; e++){
if(x % e ==0) return false;
}
return true;
}
}
public static void main(String[] args) {
int c = 0;
Sca... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
2,
13,
17,
17,
2,
13,
17,
30,
29,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
]... | [
"import java.util.Scanner;\npublic class Main{\n\tprivate static boolean check(int number){\n\t\tif(number==2){\t\n\t\t\treturn true;\n\t\t}\n\t\telse if(number%2==0 || number<2){\n\t\t\treturn false;\n\t\t\t}\n\t\telse\n\t\t\tfor(int j = 3; j <=Math.sqrt(number);j+=2){\n\t\t\t\tif(number%j==0){\n\t\t\t\t\treturn f... | import java.util.Scanner;
public class Main{
private static boolean check(int number){
if(number==2){
return true;
}
else if(number%2==0 || number<2){
return false;
}
else
for(int j = 3; j <=Math.sqrt(number);j+=2){
if(number%j==0){
return false;
}
}
return true;
}
public ... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
41,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
98,
8
],
[
98,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main\n{\n\t\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ans = 0;\n\t\tfor(int i = 0; i< n ; i++){\n\t\t\t... | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int ans = 0;
for(int i = 0; i< n ; i++){
int now = Integer.parseInt(br.r... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
55,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n for(int i = 0;i < n;i++){\n\n \t// \tisProbablePrime()はこのBigIntegerが素... | import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int count = 0;
for(int i = 0;i < n;i++){
// isProbablePrime()はこのBigIntegerが素数である可能性が高い場合はtrue、必ず合... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
114,
11
],
[
114,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main (String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString wdn =... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String wdn = br.readLine();
int ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint count = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif(isPrime(a)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tS... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int count = 0;
for(int i = 0; i < n; i++) {
int a = sc.nextInt();
if(isPrime(a)) {
count++;
}
}
System.out.println(count);
}
static boolean i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
... | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static int prime(int a) {\n\t\t\n\t\tif( a == 0 || a == 1){\n\t\t\treturn 0;\n\t\t}\n\n\t\tfor (int i = 2; i <= Math.sqrt(a); i++) {\n\t\t\t\n\t\t\tif( a % i == 0){\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t}\n\t\t\n\t\treturn 1;\n\t}\n\n\tpublic static void mai... | import java.util.Scanner;
public class Main{
public static int prime(int a) {
if( a == 0 || a == 1){
return 0;
}
for (int i = 2; i <= Math.sqrt(a); i++) {
if( a % i == 0){
return 0;
}
}
return 1;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
30,
29,
17,
11,
1,
41,
13,
17,
2,
13,
2,
4,
18,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
128,
8
],
[
128,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
]... | [
"import java.io.InputStream;\nimport java.util.Scanner;\n\npublic class Main {\n\tprivate static boolean isPrime(int x) {\n\n\t\t// Eratosthenes sieve\n\n\t\tif (x == 1) { return false;}\n\t\tif (x == 2) { return true;}\n\t\tif (x % 2==0) { return false;}\n\n\t\tfor (int i = 3; i < Math.sqrt(x)+1; i++) {\n\t\t\tif... | import java.io.InputStream;
import java.util.Scanner;
public class Main {
private static boolean isPrime(int x) {
// Eratosthenes sieve
if (x == 1) { return false;}
if (x == 2) { return true;}
if (x % 2==0) { return false;}
for (int i = 3; i < Math.sqrt(x)+1; i++) {
if (x % i == 0) {
return false... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
13,
13,
30,
0,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,ans;\n long num;\n n = input.nextInt();\n ans = 0;\n for (int i = 0; i < n; i++){\n num = input.nextLong... | import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n,ans;
long num;
n = input.nextInt();
ans = 0;
for (int i = 0; i < n; i++){
num = input.nextLong();
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static boolean checkPrimeNum(int x) {\n\t\tint border = (int)Math.sqrt(x) + 1;\n\n\t\tfor(int i = 2; i < border; i++) {\n\t\t\tif(x % i == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tpublic static void main(String[] args) {\... | import java.util.Scanner;
public class Main {
public static boolean checkPrimeNum(int x) {
int border = (int)Math.sqrt(x) + 1;
for(int i = 2; i < border; i++) {
if(x % i == 0) {
return false;
}
}
return true;
}
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
17,
0,
13,
20,
17,
4,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
18,
13,
13,
30,
40,
13,
0,
18,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
121,
9
],
[
9,
10
],
[
121,
11
],
[
11,
12
],
[
121,
13
],
[
13,
1... | [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n int n, count;\n boolean[] p;\n\n void run(){\n\tcount = 0;\n\tp = new boolean[100000000];\n\tsetP();\n\twhile(sc.hasNext()){\n\t n = sc.nextInt(... | import java.util.*;
public class Main{
public static void main(String[] args){
new Main().run();
}
Scanner sc = new Scanner(System.in);
int n, count;
boolean[] p;
void run(){
count = 0;
p = new boolean[100000000];
setP();
while(sc.hasNext()){
n = sc.nextInt();
if(p[n]) {
count... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
4,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scanner = new Scanner... | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scanner = new Scanner(System.in);
int ... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
137,
14
],
... | [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.lang.Math;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tint i, size, count = 0;\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tsize = ... | import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;
import java.lang.Math;
public class Main {
public static void main(String[] args){
int i, size, count = 0;
List<Integer> numbers = new ArrayList<Integer>();
Scanner in = new Scanner(System.in);
size = Integer.parseInt(in.nextLine... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n int a = input.nextInt();\n int count = 0;\n for(int i = 0; i <a; i++ ){\n if(isPrime(input.nextInt())){\n count++;\n ... | import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int count = 0;
for(int i = 0; i <a; i++ ){
if(isPrime(input.nextInt())){
count++;
}//if
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
11,
1,
0,
13,
4,
18,
13,
13,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[]args){\n\tint i,j,c,kazu,csosu=0;\n\tScanner sc = new Scanner(System.in);\n\t i=sc.nextInt();\n\tfor(j=0;j<i;j++){\n\t kazu=sc.nextInt();\n\t for(c=(int)Math.sqrt(kazu);c>1;c--){\n\t\tif(kazu%c==0){\n\t\t csosu+=1;\n\t\t... | import java.util.Scanner;
public class Main{
public static void main(String[]args){
int i,j,c,kazu,csosu=0;
Scanner sc = new Scanner(System.in);
i=sc.nextInt();
for(j=0;j<i;j++){
kazu=sc.nextInt();
for(c=(int)Math.sqrt(kazu);c>1;c--){
if(kazu%c==0){
csosu+=1;
break;
}
}
}
c... |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
29,
17,
30,
41,
13,
17,
42,
2,
13,
4,
18,
13,
13,
30,
14,
2,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\nclass Prime{\n\tdouble x;\n\tPrime(int X){\n\t\tx=X;\n\t}\n\tboolean isPrime() {\n\t\tif(x==2) {\n\t\t\treturn true;\n\t\t}\n\t\telse if(x<2||x%2==0) {\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\tint i=3;\n\t\t\twhile(i<=Math.sqrt(x)) {\n\t\t\t\tif(x%i==0) {\n\t\t\t\t\treturn false;\n... | import java.util.Scanner;
class Prime{
double x;
Prime(int X){
x=X;
}
boolean isPrime() {
if(x==2) {
return true;
}
else if(x<2||x%2==0) {
return false;
}
else {
int i=3;
while(i<=Math.sqrt(x)) {
if(x%i==0) {
return false;
}
i=i+2;
}
}
return true;
}
}
public class M... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
138,
5
],
[
138,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],... | [
"import java.util.Scanner;\n\npublic class Main{\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint[] list;\n\t\tint length;\n\t\tint primes = 0;\n\t\t\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\tlength = keyboard.nextInt();\n\t\t\n\t\tlist = new int[length];\n\t\t\n\t\tfor(int i = 0; i <... | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int[] list;
int length;
int primes = 0;
Scanner keyboard = new Scanner(System.in);
length = keyboard.nextInt();
list = new int[length];
for(int i = 0; i < length; i++) {
list[i] = keyboard.nextInt()... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
0,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint count=0;\n\t\tlong temp=0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ttemp=sc.nextLong();\n\t\t\tif(temp==2||temp%2!=0) {\n\t\t\t\tcount += sosu(tem... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int count=0;
long temp=0;
for(int i=0;i<n;i++) {
temp=sc.nextLong();
if(temp==2||temp%2!=0) {
count += sosu(temp);
}
}
System.out.println(count... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\n/**\n * 素数判定\n * @author nobu\n * @see <a href=\"http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_C&lang=ja\">ALDS1_1_C</a>\n */\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t... | import java.util.Scanner;
/**
* 素数判定
* @author nobu
* @see <a href="http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_C&lang=ja">ALDS1_1_C</a>
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int answer = 0;
for (in... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
38,
5,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nimport javax.lang.model.util.ElementScanner6;\n\nclass Main {\n public static boolean isPrime(int a) {\n for (int i = 2; i <= Math.sqrt(a); i++) {\n if (a % i == 0)\n return false;\... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.lang.model.util.ElementScanner6;
class Main {
public static boolean isPrime(int a) {
for (int i = 2; i <= Math.sqrt(a); i++) {
if (a % i == 0)
return false;
}
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
158,
8
],
[
158,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal int n = Integer.parseInt(reader.readLine());\n\t\t\tfinal int[] list = ne... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
final int n = Integer.parseInt(reader.readLine());
final int[] list = new int[n];
for (int i =... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
13,
18,
13,
13,
40,
13,
4,
18,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int[] num = new int[n];\n int count = 0;\n for (int i = 0; i < n; i++) {\n num[i] = in.nextInt();\n ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] num = new int[n];
int count = 0;
for (int i = 0; i < n; i++) {
num[i] = in.nextInt();
if (check(num... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
136,
11
],
[
136,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n/**\n *\n * @author Y\n */\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author Y
*/
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.re... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x = scanner.nextInt();\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\tif (isPrime(scanner.nextInt()))\n\t\t\t\tsum++;\n\t\t}\n\t\tSystem.out.println(su... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x = scanner.nextInt();
int sum = 0;
for (int i = 0; i < x; i++) {
if (isPrime(scanner.nextInt()))
sum++;
}
System.out.println(sum);
}
public static boolean isPrim... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
135,
5
],
[
135,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\tint count = 0;\n\tboolean p = true;\n\tScanner a = new Scanner(System.in);\n\tint n = a.nextInt();\n\tint m[] = new int[n];\n\tfor(int i = 0; i < n; i++){\n\t m[i] = a.nextInt();\n\t}\n\tfor(int i=0; i<n; i++){\n\t p = ... | import java.util.*;
public class Main{
public static void main(String[] args){
int count = 0;
boolean p = true;
Scanner a = new Scanner(System.in);
int n = a.nextInt();
int m[] = new int[n];
for(int i = 0; i < n; i++){
m[i] = a.nextInt();
}
for(int i=0; i<n; i++){
p = true;
if(m[i]==2){
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
4,
18,
13,
13,
30,
40... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
96,
8
],
[
96,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tMain main = new Main();\n\n\t\tint n = scan.nextInt();\n\t\tint count = 0;\n\t\tfor(int i = 0 ; i < n ; i++) {\n\t\t\tint... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
Main main = new Main();
int n = scan.nextInt();
int count = 0;
for(int i = 0 ; i < n ; i++) {
int num = scan.nextInt();
if(num... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
108,
14
],
... | [
"import java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Scanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\t// Scanner sc = new Sca... | import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
// Scanner sc = new Scanner(new File("test_1.txt"));
// Scanner sc = new Scanner(new File("test_2.t... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
29,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
]... | [
"import java.util.*;\n\npublic class Main {\n\t/*\n\tboolean[] furui() {\n\t\tboolean[] tab = new boolean[100000001];\n\t\ttab[0] = tab[1] = true;\n\t\tfor (int i = 2; i <= tab.length/2; i++) {\n\t\t\tif (tab[i]) continue;\n\t\t\tfor (int j = i + i; j < tab.length; j+=i) {\n\t\t\t\ttab[j] = true;\n\t\t\t}\n\t\t}\n\... | import java.util.*;
public class Main {
/*
boolean[] furui() {
boolean[] tab = new boolean[100000001];
tab[0] = tab[1] = true;
for (int i = 2; i <= tab.length/2; i++) {
if (tab[i]) continue;
for (int j = i + i; j < tab.length; j+=i) {
tab[j] = true;
}
}
return tab;
}*/
boolean isPrime(int x... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n//\t\tSystem.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tint num[] =new int[times];\n\t\tint keisan = 0;... | import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
// System.out.println(" ");
Scanner scan = new Scanner(System.in);
int times = scan.nextInt();
int num[] =new int[times];
int keisan = 0;
int sosu = 0;
boolean... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
184,
11
],
[
184,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n /**\n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException,\n IOEx... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException,
IOException {
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.io.*;\n \nclass Main {\n public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n \n int num;\n\t\t\tint cnt = n;\n int i... | import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
int n = Integer.parseInt( kb.readLine() );
int num;
int cnt = n;
int i, j;
f... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
13,
13,
4,
18,
13,
4,
18,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
... | [
"// a program which finds the number of prime numbers in the given list\n\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n\n public static void main(String[] args){\n final int N;\n int A, num = 0; // num : the number of prime numbers in the given list\n\n Scanner scanner = new Scanner... | // a program which finds the number of prime numbers in the given list
import java.util.*;
import java.lang.*;
class Main{
public static void main(String[] args){
final int N;
int A, num = 0; // num : the number of prime numbers in the given list
Scanner scanner = new Scanner(System.in);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
13,
13,
14,
2,
13,
17,
40,
13,
4,
18,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main (String [] args) {\n\t\tScanner scan = new Scanner (System.in);\n\t\tint n = scan.nextInt();\n\t\tboolean flg;\n\t\tint count = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tflg = isprime(x);\n\t\t\tif (... | import java.util.Scanner;
public class Main {
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
int n = scan.nextInt();
boolean flg;
int count = 0;
for (int i = 0; i < n; i++) {
int x = scan.nextInt();
flg = isprime(x);
if ( flg == true) count++;
}
scan.cl... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
149,
8
],
[
149,
9
],
[
9,
10
],
[
9,
11
],
[
149,
12
],
[
12,
13
],
[
149,
14
... | [
"import java.io.*;\nimport java.util.*;\n \npublic class Main {\n \n private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \n private static StringTokenizer st;\n \n public static void main ( String [] args ) throws IOException\n {\n new Main().cal();\n }\n \n... | import java.io.*;
import java.util.*;
public class Main {
private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static StringTokenizer st;
public static void main ( String [] args ) throws IOException
{
new Main().cal();
}
private voi... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 0;\n\t\tfor (int i = 0 ; i<... | import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int sum = 0;
for (int i = 0 ; i<n ; i++ ) {
int num ... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
112,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
1... | [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic int[] memo = new int[45];\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint n = in.nextInt();\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = in.nextInt();\n\t\t\tif (isPrime(a)... | import java.util.Scanner;
public class Main {
static int[] memo = new int[45];
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int cnt = 0;
for (int i = 0; i < n; i++) {
int a = in.nextInt();
if (isPrime(a)) {
cnt++;
}
}
System.out.p... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = s... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws Exception{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
4,
13,
13,
30,
40,
13,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
122,
8
],
[
122,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint findCount = 0;\n\t\tfor (int ... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int findCount = 0;
for (int i = 0; i < n; i++) {
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
41,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
14,
2,
2,
2,
13,
17,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
]... | [
"import java.util.*;\nimport java.lang.Math;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\n\t\tboolean prime_flag;\n\t\tint cnt = 0;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\n\t\tfor (int i = 0,j; i < N; i++) {\n\t\t\t prime_flag = true;\n\t\t\t j = sc.nex... | import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
boolean prime_flag;
int cnt = 0;
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
for (int i = 0,j; i < N; i++) {
prime_flag = true;
j = sc.nextInt();
if(j % 2 == 0 && j != 2){
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
13,
4,
13,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
18,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main {\n private static final int maxNum = 100000010;\n public static void main(String[] args) {\n Scanner cin = new Scanner(System.in);\n boolean[] primeTable = new boolean[maxNum];\n creatPrimeTable(primeTable);\n\n int n = cin.nextInt(),... | import java.util.Scanner;
import java.util.Arrays;
class Main {
private static final int maxNum = 100000010;
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
boolean[] primeTable = new boolean[maxNum];
creatPrimeTable(primeTable);
int n = cin.nextInt(), ct = 0;
fo... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
14,
2,
4,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\n/**\n * C\n */\npublic class Main {\n public static void main(String[] args) {\n \n int prime = 0;\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int array[] = new int[n];\n\n for(int i=0; i<n; i++) {\n array[i] = sc... | import java.util.*;
/**
* C
*/
public class Main {
public static void main(String[] args) {
int prime = 0;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int array[] = new int[n];
for(int i=0; i<n; i++) {
array[i] = sc.nextInt();
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
112,
11
],
[
112,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\tString x = \"\";\n\t\t\n\t\ttry {\n\t\t\tint lim = Integer.pa... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String x = "";
try {
int lim = Integer.parseInt(in.readLine());
i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint[] e = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\te[i] = scan.nextInt();\n\n\t\tint r = 0;\n\t\tfor (int i = 0; i < n; i++)\n\t\... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] e = new int[n];
for (int i = 0; i < n; i++)
e[i] = scan.nextInt();
int r = 0;
for (int i = 0; i < n; i++)
if (isPrime(e[i]))
r++;
Syste... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
30,
41,
13,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n if (n == 10000)\n System.out.println(592);\n else {\n int counter = 0;\n int[] primes = new i... | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
if (n == 10000)
System.out.println(592);
else {
int counter = 0;
int[] primes = new int[1000000];
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"/**\n * n ????????´??°???????????????????????????????????????????´???°?????°???????????????????????°??????\n * ??\\???\n * ??????????????? n ?????????????????????????¶???? n ?????? n ????????´??°????????????????????????\n * <p>\n * ??????\n * ??\\???????????????????´???°?????°??????????????????????????????????????... | /**
* n ????????´??°???????????????????????????????????????????´???°?????°???????????????????????°??????
* ??\???
* ??????????????? n ?????????????????????????¶???? n ?????? n ????????´??°????????????????????????
* <p>
* ??????
* ??\???????????????????´???°?????°???????????????????????????????????????
* <p>
* ?... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
4,
18,
13,
40,
13,
4,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final int n = Integer.parseInt(br.readLine(... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args) throws IOException{
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final int n = Integer.parseInt(br.readLine());
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tstatic boolean isPrime(int n) {\n\t\tfor(int i = 2; i*i <= n; i++) {\n\t\t\tif(n%i == 0) retur... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static boolean isPrime(int n) {
for(int i = 2; i*i <= n; i++) {
if(n%i == 0) return false;
}
return... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
... | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n\tint count=0,i,j,yaku=0,n,m;\n\t\n\tScanner scan = new Scanner(System.in);\n\tn = scan.nextInt();\n\tif(1>n || n>10000){System.exit(0);}\n\t \n\tfor(i=0;i<n;i++){ \n\t m = scan.nextInt();\n\t if(2>m || m>100000000){System.... | import java.util.Scanner;
class Main{
public static void main(String[] args){
int count=0,i,j,yaku=0,n,m;
Scanner scan = new Scanner(System.in);
n = scan.nextInt();
if(1>n || n>10000){System.exit(0);}
for(i=0;i<n;i++){
m = scan.nextInt();
if(2>m || m>100000000){System.exit(0);}
for(j=2;j... |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
4,
18,
13,
2,
13,
17,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
3... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
191,
5
],
[
191,
6
],
[
6,
7
],
[
6,
8
],
[
191,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
... | [
"import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private int MAX = 1000000000;\n private int MAXA = (int)Math.sqrt(MAX+1);\n private void solv() {\n Scanner input = new Scanner(System... | import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solv();
}
private int MAX = 1000000000;
private int MAXA = (int)Math.sqrt(MAX+1);
private void solv() {
Scanner input = new Scanner(System.in);
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
13,
41,
13,
41,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[... | [
"import java.io.*;\n \nclass Main {\n public static void main(String[] args) {\n BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n try {\n int n = Integer.parseInt( kb.readLine() );\n \n int num;\n\t\t\tint cnt = n;\n int i... | import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
int n = Integer.parseInt( kb.readLine() );
int num;
int cnt = n;
int i, j;
int[] nums... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
13,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
3... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
103,
11
],
[
103,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tbr.readLine();\n\t\tint count = 0;\n\t\t\n\t\tStrin... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
br.readLine();
int count = 0;
String str;
while((str = br.r... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
13,
11,
1,
41,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n=sc.nextInt();\n \tint m;\n \tint reg=0;\n for(int i=0;i<n;i++){\n \tm=sc.nextInt();\n \tif(m==2||m==3){\n \t\treg++;\n \t}\n ... | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int m;
int reg=0;
for(int i=0;i<n;i++){
m=sc.nextInt();
if(m==2||m==3){
reg++;
}
for(int j=2;j*j<m;j++){
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
14,
15
],... | [
"\nimport java.util.Scanner;\n\n/**\n * Created by ??\\??? on 2016/12/2.\n */\npublic class Main {\n static boolean[] tony(int n)\n {\n boolean[] array = new boolean[n];\n for(int i = 0;i<n;i++)\n {\n array[i] = true;\n }\n array[0] = false;\n array[1] = fa... |
import java.util.Scanner;
/**
* Created by ??\??? on 2016/12/2.
*/
public class Main {
static boolean[] tony(int n)
{
boolean[] array = new boolean[n];
for(int i = 0;i<n;i++)
{
array[i] = true;
}
array[0] = false;
array[1] = false;
for(int ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
3... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n//\t\tlong[] li = new long[n];\n//\t\tfor (int i=0; i < n; i++) {\n//\t\t\tli[i] = sc.n... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// long[] li = new long[n];
// for (int i=0; i < n; i++) {
// li[i] = sc.nextLong();
// }
int count =... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\n\n\nclass Main {\n public static void main (String args[]) {\n\tScanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint A[] = new int[n];\n\tint cnt = 0;\n\tfor(int i = 0;i < n;i++){\n\t A[i] = sc.nextInt();\t\t\n\t}\n\tfor(int i = 0;i < n;i++){\n\t cnt+=Prime(A[... | import java.util.Scanner;
class Main {
public static void main (String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int cnt = 0;
for(int i = 0;i < n;i++){
A[i] = sc.nextInt();
}
for(int i = 0;i < n;i++){
cnt+=Prime(A[i]);
}
System.out.print... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
17,
14... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
110,
8
],
[
110,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.*;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(), x, i, j=3, ans = 0, ex = 0;\n for(i = 0; i < n; i++){\n x = sc.nextInt();\n //S... | import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), x, i, j=3, ans = 0, ex = 0;
for(i = 0; i < n; i++){
x = sc.nextInt();
//System.out.prin... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
20,
17,
30,
40,
13,
4,
18,
18,
13,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
58,
8
],
[
58,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.math.*;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int count = 0;\n\n for(int i = 0; i < num; i++){\n String x = sc.next();\n if(new Bi... | import java.math.*;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int count = 0;
for(int i = 0; i < num; i++){
String x = sc.next();
if(new BigInteger(x).isPr... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tint size = input.nextInt();\n\t\tint[] arr = new int[size];\n\t\t\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tarr[i] = input.nextInt();\n\t\t}\n\t\t\n\t\tSystem.out.pri... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int size = input.nextInt();
int[] arr = new int[size];
for(int i = 0; i < size; i++) {
arr[i] = input.nextInt();
}
System.out.println(total(arr));
input.close();
}
pub... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
132,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.InputMismatchException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\ttry {\n\t\t\tint num = sc.nextInt();\n\n\t\t\tint[] values = new int[num];\n\t\t\tint count = 0;\n\n\t\t\tfor(int i = 0; i < values... | import java.util.InputMismatchException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
try {
int num = sc.nextInt();
int[] values = new int[num];
int count = 0;
for(int i = 0; i < values.length; i++) {
values[i] = sc.... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
13,
14,
2,
4,
13,
13,
17,
30,
0,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
233,
8
],
[
233,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader breader = getReader();\n\n\t\tint n = getInt(breader);\n\t\tint[] ary = new int[n]... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
BufferedReader breader = getReader();
int n = getInt(breader);
int[] ary = new int[n];
int ofs = 0;
for( i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.*;\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n int idx=Integer.parseInt(buf.readLine()); \n int ans=0;\n for(int i=0;i<idx;i++){\n int x=Intege... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
int idx=Integer.parseInt(buf.readLine());
int ans=0;
for(int i=0;i<idx;i++){
int x=Integer.parseInt(b... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
115,
5
],
[
115,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static boolean isPrime(int n) {\n\t\tboolean out = true;\n\t\tint last = (int) (Math.floor(Math.sqrt(n)));\n\t\tfor (int j = 3; j <= last; j += 2) {\n\t\t\tif (n % j == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}\n\n\tpublic static ... | import java.util.Scanner;
public class Main {
public static boolean isPrime(int n) {
boolean out = true;
int last = (int) (Math.floor(Math.sqrt(n)));
for (int j = 3; j <= last; j += 2) {
if (n % j == 0) {
return false;
}
}
return out;
}
public static void main(String[] args) {
Scanner in = n... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.util.Scanner;\n\npublic class Main {\n private static Scanner sc=new Scanner(System.in);\n public static void main(String[] args){\n int n=sc.nextInt();\n int[] a=new int[n];\n int notprime=0;\n for(int i=0;i<n;i++){\n a[i]=sc.nextInt();\n for(int... | import java.util.Scanner;
public class Main {
private static Scanner sc=new Scanner(System.in);
public static void main(String[] args){
int n=sc.nextInt();
int[] a=new int[n];
int notprime=0;
for(int i=0;i<n;i++){
a[i]=sc.nextInt();
for(int j=2;j<=Math.sq... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n public static void main (String[] args) {\n final Scanner sc = new Scanner(System.in);\n int length = sc.nextInt();\n int[] numbers = new int[length];\n\n int max = 0;\n int count = 0;\n for (int i = 0; i < length; i++) {\n ... | import java.util.Scanner;
class Main {
public static void main (String[] args) {
final Scanner sc = new Scanner(System.in);
int length = sc.nextInt();
int[] numbers = new int[length];
int max = 0;
int count = 0;
for (int i = 0; i < length; i++) {
numbers... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
116,
11
],
[
116,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tin... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int[] numbers = new int... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
95,
14
],
... | [
"import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal int N = sc.nextInt();\n\n\t\tint count = 0;\n\t\tfor(int i = 0; i < N; i++){\n\t\t\... | import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
final int N = sc.nextInt();
int count = 0;
for(int i = 0; i < N; i++){
final int number = sc.nextInt();
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
81,
8
],
[
81,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.*;\nimport java.lang.*;\n\npublic class Main {\n static boolean isPrime(int x) {\n for(int i = 2; i <= Math.sqrt(x); i++) {\n if(x % i == 0) return false;\n }\n return true;\n }\n\n public static void main (String[] args) {\n Scanner sc = new Scanner... | import java.util.*;
import java.lang.*;
public class Main {
static boolean isPrime(int x) {
for(int i = 2; i <= Math.sqrt(x); i++) {
if(x % i == 0) return false;
}
return true;
}
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
95,
14
],
... | [
"import java.io.File;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Scanner sc = new Scanner(new File(\"test_1.txt\"));\n\t\t// Scanner sc = new Sca... | import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
// Scanner sc = new Scanner(new File("test_1.txt"));
// Scanner sc = new Scanner(new File("test_2.t... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static boolean is_prime(int n) {\n\t\tint square_root = (int)Math.sqrt(n);\n\t\tfor (int i = square_root; i > 1; i--) {\n\t\t\tif (n % i == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tpublic static void main(String[] args) {\n... | import java.util.Scanner;
public class Main {
public static boolean is_prime(int n) {
int square_root = (int)Math.sqrt(n);
for (int i = square_root; i > 1; i--) {
if (n % i == 0) {
return false;
}
}
return true;
}
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
i... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String... args) {\n Scanner sc = new Scanner(System.in);\n int size = sc.nextInt();\n int count = 0;\n\n for (int i = 0; i < size; i++) {\n if(checkPrime(sc.nextInt())) {\n count++;\n }\n }\n\n System.out.printl... | import java.util.Scanner;
class Main {
public static void main(String... args) {
Scanner sc = new Scanner(System.in);
int size = sc.nextInt();
int count = 0;
for (int i = 0; i < size; i++) {
if(checkPrime(sc.nextInt())) {
count++;
}
}
System.out.println(count);
}
pu... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
13,
18,
13,
13,
30,
40,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input = scan.nextInt();\n\t\tint[] num = new int[input];\n\t\tboolean t;\n\t\tint count = 0;\n\t\t\n\t\tfor(int i = 0; i < input; i++){\n\t\t\tnum[i] = scan.nextInt();\n\t\t\t\n\... | import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int input = scan.nextInt();
int[] num = new int[input];
boolean t;
int count = 0;
for(int i = 0; i < input; i++){
num[i] = scan.nextInt();
if(isPrime(num[i])) {
count++;
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
4... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
7,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main {\n boolean[] primeTable;\n public static void main(String[] args) {\n Scanner cin = new Scanner(System.in);\n PrimeNum prime = new PrimeNum(100000010);\n prime.createTable();\n int n = cin.nextInt(), ct = 0;\n for (int i = 0; i < n... | import java.util.Scanner;
import java.util.Arrays;
class Main {
boolean[] primeTable;
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
PrimeNum prime = new PrimeNum(100000010);
prime.createTable();
int n = cin.nextInt(), ct = 0;
for (int i = 0; i < n; i++){
i... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
40,
4,
18,
13,
13,
4,
13,
13,
30... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\t\tint count = 0;\n\t\tArrayList<Integer> primeAr = new ArrayList<Integer>();\n\t\t\n\t\tfor (int i = 0; i < length; ... | import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int length = sc.nextInt();
int count = 0;
ArrayList<Integer> primeAr = new ArrayList<Integer>();
for (int i = 0; i < length; i++) {
int num = sc.nextI... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
17,
30,
11,
1,
41,
13,
17,
2,
13,
2,
4,
18,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
40,
13,
14,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
138,
8
],
[
138,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.util.Scanner;\nimport java.util.*;\n\npublic class Main{\n\n static boolean Sosu(int p){\n int count=0;\n if(p==1) return false;\n else if(p==2) return true;\n else {\n for (int i=2;i<Math.sqrt(p)+1;i++){\n if(p%i==0) count++;\n }\n if(c... | import java.util.Scanner;
import java.util.*;
public class Main{
static boolean Sosu(int p){
int count=0;
if(p==1) return false;
else if(p==2) return true;
else {
for (int i=2;i<Math.sqrt(p)+1;i++){
if(p%i==0) count++;
}
if(count==0) return tr... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
... | [
"import java.util.ArrayList;\nimport java.util.List;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Main {\n\n\tstatic final int MAX = 10000;\n\n\tpublic static void main(String[] args) {\n\n\t\tint prim... | import java.util.ArrayList;
import java.util.List;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
static final int MAX = 10000;
public static void main(String[] args) {
int primecount = 0;
Input stdI... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
215,
8
],
[
215,
9
],
[
9,
10
],
[
9,
11
],
[
215,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n \npublic class Main {\n \n public static final int BIG_NUM = 2000000000;\n public static final int MOD = 1000000007;\n \n public static void main(String[] args) {\n \n int table[] = new int[10001];\n \n for(int i = 0; i <= 10000; i++... | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static final int BIG_NUM = 2000000000;
public static final int MOD = 1000000007;
public static void main(String[] args) {
int table[] = new int[10001];
for(int i = 0; i <= 10000; i++){
ta... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
4,
13,
13,
30,
40,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
110,
8
],
[
110,
9
],
[
9,
10
],
[
9,
11
],
[
110,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tprivate static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint count ... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws Exception {
int n = Integer.parseInt(br.readLine());
int count = 0;
for(int i = 0; i ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
13,
4,
13,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
0,
18,
13,
17,
17,
0,
18,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.Scanner;\n \nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint max = 100000001;\n\t\tboolean [] sosuu = new boolean [max];\n \t\t\n\t\tsosuulist(sosuu, max);\n \t\t\n \t\tsyuturyoku(sosuu);\n\t\t\n\t}\n \n\tprivate static void sosuulist(boolean [] so... | import java.util.Scanner;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
int max = 100000001;
boolean [] sosuu = new boolean [max];
sosuulist(sosuu, max);
syuturyoku(sosuu);
}
private static void sosuulist(boolean [] sosuu, int max) {
for (int i = 1; i <=... |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
2,
2,
18,
... | [
[
0,
1
],
[
195,
2
],
[
195,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],... | [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int[] a;\n int i, j;\n int p, no;\n\n n = sc.nextInt();\n a = new int[n];\n for(i = 0;i < n;++i){\n a[i] = sc.nextInt();\n ... | public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
int n;
int[] a;
int i, j;
int p, no;
n = sc.nextInt();
a = new int[n];
for(i = 0;i < n;++i){
a[i] = sc.nextInt();
if(a[i] % 2 =... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
41,
13,
17,
41,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
0,
13,
17,
11... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n;\n\t\tArrayList<Integer> num = new ArrayList<Integer>();\n\t\tint ans = 0, isPrime;\n\t\t\n\t\tn = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tnum.add(sc.nextInt... | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n;
ArrayList<Integer> num = new ArrayList<Integer>();
int ans = 0, isPrime;
n = sc.nextInt();
for(int i = 0; i < n; i++){
num.add(sc.nextInt());
}
for(int i : num){
is... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
29,
17,
41,
13,
17,
42,
2,
13,
4,
18,
13,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
0,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.io.*;\nimport java.util.*;\n\nclass JudgingMchine {\n static boolean isPrime(int x) {\n if(x == 2) {\n return true;\n }\n if(x < 2 || x % 2 == 0) {\n return false;\n }\n\n int i =3;\n while(i <= Math.sqrt(x)) {\n if(x % i == 0) {\n return false;\... | import java.io.*;
import java.util.*;
class JudgingMchine {
static boolean isPrime(int x) {
if(x == 2) {
return true;
}
if(x < 2 || x % 2 == 0) {
return false;
}
int i =3;
while(i <= Math.sqrt(x)) {
if(x % i == 0) {
return false;
}
i ... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc= new Scanner(System.in);\n\t\tint count=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint state=0;\n\t\t\tint a=sc.nextInt();\n\t\t\tfor(int j=2;j<=Math.sqrt(a);j++){\n\t\t\t\tif(a%j==0){\n\t\t\t\t\... | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int count=0;
int n=sc.nextInt();
for(int i=0;i<n;i++){
int state=0;
int a=sc.nextInt();
for(int j=2;j<=Math.sqrt(a);j++){
if(a%j==0){
state=1;
break;
}
}
if(state... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\n\nclass Main {\n\n private static boolean isPrime(int n){\n int sqrt = (int) Math.sqrt(n) + 1;\n \n for (int i = 2; i < sqrt; i++)\n if (n % i == 0)\n return false;\n\n return true;\n }\n\n\n public static void main(String[] ... | import java.util.Scanner;
class Main {
private static boolean isPrime(int n){
int sqrt = (int) Math.sqrt(n) + 1;
for (int i = 2; i < sqrt; i++)
if (n % i == 0)
return false;
return true;
}
public static void main(String[] args) throws Excepti... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
4,
18,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[... | [
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner x = new Scanner(System.in);\n int s = x.nextInt();\n int prime = 0;\n for(int i=0;i<s;i++){\n if(Prime(x.nextInt())){\n prime++;\n }\n }\n System.ou... | import java.util.*;
class Main{
public static void main(String[] args){
Scanner x = new Scanner(System.in);
int s = x.nextInt();
int prime = 0;
for(int i=0;i<s;i++){
if(Prime(x.nextInt())){
prime++;
}
}
System.out.println(prime)... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
29,
17,
41,
13,
17,
42,
2,
13,
4,
18,
13,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
17,
0,
13,
2,
13,
17,
29,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
... | [
"import java.util.Scanner;\nclass Main\n{\n public static boolean isPrime(int x)\n {\n if(x==2)\n {\n return true;\n }\n if((x<2)||(x%2==0))\n {\n return false;\n }\n int i=3;\n while(i<=Math.sqrt(x))\n {\n if(x%i==0)\n {\n return false;\n }\n i=i+2;... | import java.util.Scanner;
class Main
{
public static boolean isPrime(int x)
{
if(x==2)
{
return true;
}
if((x<2)||(x%2==0))
{
return false;
}
int i=3;
while(i<=Math.sqrt(x))
{
if(x%i==0)
{
return false;
}
i=i+2;
}
return true;
... |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
1... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
142,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
... | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\tint n = sc.nextInt();\n\t\tint[] nums = inpNum(n);\n\t\tint num_prime = judgePrime(nums);\n\t\tSystem.out.println(num_prime);\n\n\t\tsc.close();\n\t}\n\n\tprivate sta... | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int[] nums = inpNum(n);
int num_prime = judgePrime(nums);
System.out.println(num_prime);
sc.close();
}
private static int judgePrime(int[] nums) {
... |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
42,
2,
2,
18,
13,
13,
17,
... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
138,
5
],
[
138,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
... | [
"import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n\tScanner In = new Scanner(System.in);\n\t\n\tint n,count = 0;\n\t\n\tdo\n\t {\n\t\tn = In.nextInt();\n\t }while(1 >= n && n >= 10000);\n\t\n\tint []a = new int[n];\n\n\tfor(int i = 0; i < n; i++)\n\t {\n... | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner In = new Scanner(System.in);
int n,count = 0;
do
{
n = In.nextInt();
}while(1 >= n && n >= 10000);
int []a = new int[n];
for(int i = 0; i < n; i++)
{
do
{
a[i] = In.nextInt();
... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
4,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
12,
13,
30,
28,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
284,
11
],
[
284,
12
],
[
12,
13
],
[
284,
14
]... | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tstatic int n;\n\tstatic int[] nums;\n\tstatic int result;\n\t\n\tstatic void input() throws IOException {\n\t\tn = readInt();\n\t\tnums = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static int n;
static int[] nums;
static int result;
static void input() throws IOException {
n = readInt();
nums = new int[n];
for (int i = 0; i < n; i++) {
nums[i] = readInt();
}
}
s... |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
175,
11
],
[
175,
12
],
[
12,
13
],
[
12,
14
],... | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int loop = Integer.parseInt(br.readLine(... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int loop = Integer.parseInt(br.readLine());
... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
40,
2,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
]... | [
"import java.io.IOException;\nimport java.util.*;\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sizeOfList = sc.nextInt();\n\t\tList<Long> values = new ArrayList<Long>();\n\n\t\tlong biggest = -(2000000000-1);\n\t\tfor ... | import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int sizeOfList = sc.nextInt();
List<Long> values = new ArrayList<Long>();
long biggest = -(2000000000-1);
for (int i = 0; i < sizeOfList; i... |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
2,
18,
13... | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
... | [
"import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n//\t\tSystem.out.println(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tint num[] =new int[times];\n\t\tint max = 0;\n\... | import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
// System.out.println(" ");
Scanner scan = new Scanner(System.in);
int times = scan.nextInt();
int num[] =new int[times];
int max = 0;
int min = 0;
for(int i=0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.