Skip to content
Snippets Groups Projects
Commit 16bb5234 authored by Antony Nixen Raj's avatar Antony Nixen Raj
Browse files

Prime Number

parent a5a514c1
No related branches found
No related tags found
No related merge requests found
package NumberSystem;
public class NumberOfFactors {
static int countFactors(int N) {
double sqrt=(double) (Math.sqrt(N));
......
package NumberSystem;
public class PrimeNumbersBoolean {
static boolean isPrime(int n) {
for(int i=2;i<n;i++){
if(n%i==0)
return false;
}
return true;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment