LabVIEW 2012 (or compatible)
select the max prime number you wish to make your array to and press RUN
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.