Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#

Prime Number Determination Using Wheel Factorization

Rate me:
Please Sign up or sign in to vote.
4.84/5 (17 votes)
2 Feb 2009CPOL4 min read 77.4K   719   28  
Determine if an integer is prime, and use Wheel Factorization to improve the algorithm.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Rick.Oden.PrimeSuspect
{
   public partial class aboutForm : Form
   {
      public aboutForm()
      {
         InitializeComponent();
      }

      private void button1_Click(object sender, EventArgs e)
      {
         this.Close();
      }
   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
My name is Rick Oden. I am a software developer living in Colorado. I have been developing code for various companies for more than 19 years. The languages I have used includes Pascal, Visual Basic, Delphi, Plex, C#, and now looking into F#.

Comments and Discussions