MCPcopy Create free account
hub / github.com/Ibrahim23CS1279/days100 / atomicNumber

Function atomicNumber

JSday32.js:31–37  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

29
30// 4. Atomic (Prime logic)
31function atomicNumber(n){
32 if(n<=1) return false;
33 for(let i=2;i<=n/2;i++){
34 if(n%i==0) return false;
35 }
36 return true;
37}
38
39// 5. Automorphic
40function automorphic(n){

Callers 1

JSday32.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected