JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Enter input in x
// Bugged Code I Made From Visual Studio Code
public class App {
public static void main(String[] args) {
int x=5;
if (x % 2 = 1) {
if (x % 3 = 1) {
if (x % 5 = 1) {
if (x % 7 = 1) {
if (x % 9 = 1) {
System.out.println("Prime!");
} else if (x==x) {
System.out.println("Not Prime!");
}
}
}
}
}
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run