Z3 prime numbers
问题 I am trying to learn z3, and this is the first program I write. In this exercise, I am trying to determine if x is prime. If x is prime, return SAT, otherwise, return UNSAT alongside with two of its factors. Here is what I have so far http://rise4fun.com/Z3/STlX My problem is I don't think the code is doing anything right now. It returns SAT for whatever I do. i.e if I assert that 7 is prime, it returns SAT, if I assert 7 is not prime, it returns SAT. I am not sure how recursion works in z3,