Example Code

Prime number Array of "n" elements

Code and Documents

Attachment

Download All

Overview

This VI shows how to make an aray of prime numbers

 

Description

When you need to find the prime numbers between 2 to "n" , and get an array of prime numbers.

 

Hardware and Software Requirements

 LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

 select the max prime number you wish to make your array to and press RUN

 

Additional Information or References

 Prime num 1.jpgPrime num 2.jpg

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
PalanivelThiruvenkadam
Active Participant Active Participant
Active Participant
on
Will this work for Prime Numbers till 3 only.
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Contributors