Write brute force calculator for testing