Example Code

Project Euler Problem 3 Solution using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This example shows how to obtain the solution to the third problem in the Project Euler. 


Description

This VI solves #3 of the Project Euler Problems. Problem description is: Find the largest prime factor of a composite number.

More info about the Project Euler Problems can be found here: http://projecteuler.net/

 
Requirements

  • LabVIEW Base Development System 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download and open the VI “Project Euler Problem 3 Solution 2012 NIVerified.vi”.
  2. Run the program.

 

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

J Newk
Systems Engineer
National Instruments

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