So with $1037 = 17 \cdot 61$, is there a fast method to deduce that it's not a prime number?
Say $1037 = 10^3+6^2+1$. Does $a^3 + b^2 + 1$ factorize in some way?
As part of their interviews, a company is asking whether a number is prime. I have never studied number theory, and I am not aware of a strategy for this apart from polynomial factorization.
I am guessing that for a number they give you, it would have to not be prime, as the only way to see that a number is a prime by hand is to test all primes below $\sqrt{N}$.
There are various methods for deciding primality, some probabilistic (the result is not sure but the more you run the algorithm the more securely you know the answer) and there are deterministic methods (they decide for sure). Altough all of these working efficiently on numbers that are way greater than $1037$.
With numbers of this size checking all numbers seems to be the most efficient way. There of course are some special cases but if you get a number of this size you should go about checking if it is even (easy), divisible by $3$ (the digitsum is divisible by $3$) by $5$ (ends with $0$ or $5$) and so on. If you have a calculator at hand it wouldn't take longer than a minute since $\sqrt{1037}\approx 32$ so you only have to check primes up to $31$.
They surely do not mean tests like these but I would like to add some links for the sake of completeness
Probablilistic test is the so called Miller-Rabin test.
And for deterministic Pollards $p-1$ and Lenstras elliptic curve factorisation is a fast and efficient one.
Even difference of squares can work fine:
$N$ is to be factored, find a $b^2$ such that $N+b^2$ is a square, say $a^2$ and then
$$ N+b^2=a^2 $$ so $$ N=a^2-b^2=(a-b)(a+b) $$