f = 9x^2 - 78x-10000
list1 = PrimeQ[Abs[f /. x -> {Range[1, 20]}]]
Count[list1,True]
This is my code. Im trying to find how many prime numbers there are between the range 1-20. If a number is negative i have to take the absolute value of it.
I need to know how many numbers are prime. I tried using count(i want to see how many times true shows up) but it keeps returning 0 thank you
f = 9 x^2 - 78 x - 10000; list1 = PrimeQ[Abs[f /. x -> Range[1, 20]]]; Count[list1, True]
$\endgroup$Abs
is not need. $\endgroup$