by anderskaseorg · 8y ago · 0 comments
T = (n, k) => { return (GCD(n, k) == 1) ? 1 : 0; }
The given code doesn’t use primes, primesSet, or isPrime at all.
n = 14: fails on row 13, col 3
n = 20: fails on row 17, col 8
n = 30: fails on row 17, col 7
n = 38: fails on row 37, col 8
n = 44: fails on row 31, col 2
n = 50: fails on row 43, col 13
…
He's not claiming it holds for _all_ n, just for _many_ n.
row 1, col 1: [1, 2, 3, …, 75], has primes
row 2, col 1: [76, 78, 80, …, 224], no primes
row 2, col 2: [77, 79, 81, …, 225], has primes