.. include:: Exercise: Primeness (``for``) ============================= .. jf-topic:: python.basics.exercises.for_primeness :dependencies: python.basics.python_0220_for, python.basics.exercises.while_primeness #. Convert the program from exercise :doc:`/trainings/material/soup/python/python_0195_exercises/exercise_while_primeness` as follows. * Use a ``for`` loop instead of a ``while`` loop * Use the ``range()`` function to specify the range of divisor candidates #. Compare both ``while`` and ``for`` solutions. Which one appears more readable?