document.write( "Question 426602: is 43 a prime number? \n" ); document.write( "
Algebra.Com's Answer #296743 by htmentor(1343)\"\" \"About 
You can put this solution on YOUR website!
We need to check if the number is divisible by anything other than 1 and 43.
\n" ); document.write( "Since it is odd, it is not divisible by 2, which means it is not divisible by 4, 6, or 8 (and if it were, it wouldn't be prime, anyway!)
\n" ); document.write( "Is it divisible by 3? No. 43/3 = 14, remainder 1
\n" ); document.write( "It is not divisible by 5, since it does not end in 0 or 5.
\n" ); document.write( "Is it divisible by 7? No. 43/7 = 6, remainder 1
\n" ); document.write( "Since it is not divisible by 3, it is not divisible by 9.
\n" ); document.write( "Therefore, the number is prime.
\n" ); document.write( "Note that we could have stopped checking at 7, since 7*7 = 49 > 43.
\n" ); document.write( "
\n" );