0

I want to find it out for the number

2345678901233.. but it is giving the error ..is there any method to find out the primes beyond the range of integer..

```
import java.util.*;
public class inc {
int flag=0;
int h=2;
public void checkprime(int k)
{
while(h<k){
if(k%h==0){
flag=1;
}
h++;
}
if(flag==1 ||k==1 )
System.out.println("The number is not prime");
else
System.out.println("The number is prime");
}
public static void main(String[] args) {
inc a=new inc();
Scanner i=new Scanner(System.in);
int j=i.nextInt();
a.checkprime(j);
}
}
```