Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 489 Bytes

File metadata and controls

32 lines (19 loc) · 489 Bytes

Prime Numbers Example

Question

Generate first n prime numbers.

Solution

.. literalinclude:: ../../languages/python/algorithm_prime_1.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_prime_1.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`algorithm_prime_1.py`
   * :python-better-explain:`algorithm_prime_1.rst`