0
$\begingroup$

Question

I have the following command I am entering:

solve[y=prime(x-1)+(z)/prime(x-1)+1, z=28] over the integers

I would like to be able to say:

Solve for z=28,29,30 or 31 .

Is there any way to do that?

I tried the following, but it fails:

solve[y=prime(x-1)+(z)/prime(x-1)+1, z={28,29,30,21}] over the integers

Update

I guess the proper question is how do I tell WA that I want to solve Y, given Z can be 4 specific values.

$\endgroup$
0
$\begingroup$

I solved it by adding inequality conditions:

solve[y=prime(x-1)+(z)/prime(x-1)+1, z> 27, z<32] over the integers

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.