This VI will search for prime numbers based on the number of runs.
Description
Creating a program that searches for prime numbers is a good exercise for any new code developer. In the example below, the VI searches for prime numbers, and returns them in order.
Requirements
- LabVIEW 2013 (or compatible)
Steps to Implement or Execute Code
- Specify the number of runs you want to code to execute.
- Ensure that the default values for the Initial Primes In are 1, 2 and 3.
- Run the program.
- If you wish to abort the execution, press the abort button.
Additional Information or References
Block diagram:

**This document has been updated to meet the current required format for the NI Code Exchange.**