News for hackers. Stuff that matters.
Re:Is this prime? by sdenton4 on Tuesday March 08, 2016 @11:50AM (#11246462)
The more general test for eleven is to check that the alternating sum of the digits is zero.
Re:Is this prime? by cousin_it on Tuesday March 08, 2016 @01:48PM (#11247477)
Counterexample: 209. The even more general test is that the alternating sum of digits is divisible by 11.
Re:Is this prime? by sdenton4 on Tuesday March 08, 2016 @11:54PM (#11251016)
(I'll pretend to defend myself and say I meant zero mod eleven. :) )