Talk:Multi-base primes

From Rosetta Code

inadequate range checking?

Hindsight is a wonderful thing. After translating the Rust entry, I am a bit concerned it is skipping a few things it should perhaps not. Who's to say, for instance, that "ABCDEF" won't be prime in 36-16=20 bases? My translation, at least, is not checking that. --Pete Lomax (talk) 12:13, 3 July 2021 (UTC)

ABCDE0 is divisible by base in any base. Adding F (15) in a base greater than 16 will result in a number ending in 5 in base 10, so ABCDEF can not be prime in any base.--Nigel Galloway (talk) 15:49, 3 July 2021 (UTC)