I am having an integer number which consists of 100 digits and I want to check whether the number is prime or not. How am I supposed to check?
I have tried using long integer but as you know it is impossible. So, is there any other way to solve it. If yes, then please provide me sample code for it.
I expect to get output as only prime
and not prime
when I enter any 100 digit integer.