(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
but seriously like, how are you so incredibly smart, thatโs like youโre writing a computer script but instead with pure math