Divisible by 1000003? Easy, just multiply the last digit by 300001 and add! – codegolf.stackexchange.com

Given a prime P greater than 10, your program or function must figure out its divisibility rule x, defined as the integer with smallest absolute value which yields a multiple of the original prime ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Divisible by 1000003? Easy, just multiply the last digit by 300001 and add! – codegolf.stackexchange.com"