Question 346568
I would apporach it this way
Find the square root of 3127 
That is 55.9
So look for prime numbers on either side of 56
And then try them

Here is a list of prime numbers ...

There are 25 prime numbers between 1 and 100.

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97. 

I would start with 59, divide 3127 by 59 and see what you get

Sometimes, a little logic and then trial and error gets you an answer quicker.