prime_numbers.py: Tighten up the benchmarks (#7976)
prime_numbers.py: Tighten up the benchmarks (#7976)

* prime_numbers.py: Tighten up the benchmarks

* updating DIRECTORY.md

Co-authored-by: github-actions <47a35b99ddbe74edbea9dad62cf9a3b212194173@users.noreply.github.com>
TheAlgorithms/Python