I have looked in some of my old books and found an exericse that I do not know how to solve. It seems pretty simple though.
The question is as follows:
Which of these integers are prime?:
111
111.1
111.111
111.111.11
111.111.111
111.111.111.1
111.111.111.111
I remember one rule of thumb saying that if the sum of integers mod 9 were 0,3 or 9, then you could know for sure that the not number was NOT prime.
But for numbers such as this, is there any way of checking whether the number is actually prime?