You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* re added work after syncing with main branch
* chore: updates formatting and moves files
Signed-off-by: Anthony D. Mays <[email protected]>
* chore: updates formatting and moves files
Signed-off-by: Anthony D. Mays <[email protected]>
* chore: formatting
Signed-off-by: Anthony D. Mays <[email protected]>
---------
Signed-off-by: Anthony D. Mays <[email protected]>
Co-authored-by: Anthony D. Mays <[email protected]>
System.out.println(num +" is prime: "+ isPrime(num));
36
+
}
37
+
}
38
+
```
39
+
40
+
Similarties
41
+
They both use if and for standards to go about the command. This essentially gives the computer a path to go through to make sure the number is prime or not. They also both use the true and false function. This tells the computer how to go about the next commands. Also they both use division. Division is important because if it can be di
42
+
vided or not crtical in figuring out if the number is prime.
43
+
44
+
Differences
45
+
A big difference is in the certain command language used. Examples begin in how they start. Java begins with public static and python begins with def is prime. This continues all throughout the code line with multiple commands being different.
0 commit comments