lily @lily

(n - 1)! + 1 is divisible by n if n is prime or 1

EDIT: therefore floor ( cos pi ((n-1)!+1)/n )² is a boolean prime detector :3

Nov 3, 2022, 9:08 PM
7
View all Parent

comments

Highlighted comment

it’s just part of willans’ formula, i just found it interesting

never heard of it (I’m in alg 2 rn, what course are you taking?)

Ayo I'm in the same one