Elementary questions about functions, notation, properties, and operations such as function composition.

learn more… | top users | synonyms (1)

3
votes
1answer
79 views
+50

Looking for help to clearly define a function that counts the number of twin primes in a range

My goal is to define a function that counts the number of twin primes between $q$ and $q^2$ where $q$ is any prime greater than $7$. I would like to do this using: The Sieve of Eratosthenes The ...