To download NI software, including the products shown below, visit ni.com/downloads.
Overview
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
Steps to Implement or Execute Code
Additional Information or References
Block diagram:
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.