Finished 17. Issue was <and>.
Starting problem 18. Doing brute force method for now.