did 23
did brute force and it's slow for 24. will try cooler algorithms