humble number in java code
import java.util.HashSet;
public class Main
{
public static void main(String[] args) {
int n = 21;
humble(n);
}
public static void humble(int n){
HashSet<Integer> h = new HashSet<>() ;
for(int i=2;i<=n;i++){
while(n%i == 0){
h.add(i);
n = n/i;
if(i != 2 && i != 3 && i!=5 && i!=7 ){
System.out.print("not ");
}
}
}
System.out.println("humble");
}
}