Question: (n^2)+n-17 I need python code where you put in a n value and it tells u weather or not the answer to the equation is

(n^2)+n-17

I need python code where you put in a n value and it tells u weather or not the answer to the equation is prime. and if it is prime make it so it adds 1 each time to the n value until it finds a number where it isn't prime and have it stop when it finds a value where it isn't prime

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!