A prime number is a natural number, greater than one, that can only be divided by 1 and itself.
The number 315487 can be evenly divided by
1, 31, 10,177 and 315,487, with no remainder.
Since 315,487 cannot be divided by just 1 and 315,487, it
is not a prime number.