Click here to Skip to main content
15,886,664 members
Articles / Programming Languages / Visual Basic

Finding prime numbers

Rate me:
Please Sign up or sign in to vote.
4.97/5 (65 votes)
14 Mar 2013CPOL17 min read 213.4K   3.4K   75  
Different schemas for finding prime numbers explained with code
<?xml version="1.0"?>
<doc>
<assembly>
<name>
WpfPrimeNumbers
</name>
</assembly>
<members>
<member name="M:WpfPrimeNumbers.MainWindow.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="T:WpfPrimeNumbers.MainWindow">
	<summary>
MainWindow
</summary>
</member><member name="M:WpfPrimeNumbers.Application.InitializeComponent">
	<summary>
InitializeComponent
</summary>
</member><member name="M:WpfPrimeNumbers.Application.Main">
	<summary>
Application Entry Point.
</summary>
</member><member name="T:WpfPrimeNumbers.Application">
	<summary>
Application
</summary>
</member><member name="P:WpfPrimeNumbers.My.MyWpfExtension.Application">
	<summary>
 Returns the application object for the running application
 </summary>
</member><member name="P:WpfPrimeNumbers.My.MyWpfExtension.Computer">
	<summary>
 Returns information about the host computer.
 </summary>
</member><member name="P:WpfPrimeNumbers.My.MyWpfExtension.User">
	<summary>
 Returns information for the current user.  If you wish to run the application with the current 
 Windows user credentials, call My.User.InitializeWithWindowsUser().
 </summary>
</member><member name="P:WpfPrimeNumbers.My.MyWpfExtension.Log">
	<summary>
 Returns the application log. The listeners can be configured by the application's configuration file.
 </summary>
</member><member name="P:WpfPrimeNumbers.My.MyWpfExtension.Windows">
	<summary>
 Returns the collection of Windows defined in the project.
 </summary>
</member><member name="T:WpfPrimeNumbers.My.MyWpfExtension">
	<summary>
 Module used to define the properties that are available in the My Namespace for WPF
 </summary>
	<remarks></remarks>
</member><member name="M:WpfPrimeNumbers.MainWindow.SieveOfEratosthenes(System.Numerics.BigInteger)">
	<summary>
 Returns all the primes from 2 up to N
 </summary>
	<param name="N">Find all primes below N</param>
	<returns></returns>
	<remarks></remarks>
</member><member name="M:WpfPrimeNumbers.MainWindow.SieveOfEratosthenes(System.Numerics.BigInteger,System.Numerics.BigInteger,System.Collections.Generic.List{System.Numerics.BigInteger})">
	<summary>
 Gives out all the primes from 2 to N, given the primes below M and the start finding new primes at M
 </summary>
	<param name="M">Start the check fore new primes at M</param>
	<param name="N">The upper boundary for finding primes N</param>
	<param name="PiPrime">All the primes below M, includeed M</param>
	<returns>A list of primes from 2 to N</returns>
	<remarks>This function requires that you have all the prime numbers below M</remarks>
</member><member name="M:WpfPrimeNumbers.MainWindow.SqrtN(System.Numerics.BigInteger)">
	<summary>
	</summary>
	<param name="N"></param>
	<returns></returns>
	<remarks></remarks>
</member><member name="M:WpfPrimeNumbers.MainWindow.SieveOfAtkin(System.Numerics.BigInteger)">
	<summary>
 Returns a list of Primes from 2 to N
 </summary>
	<param name="N">Find prime numbers equal or lower than N</param>
	<returns>List of primes as List(of BigInteger)</returns>
	<remarks>For large primes you can get out of memory exceptions</remarks>
</member><member name="P:WpfPrimeNumbers.My.Resources.Resources.ResourceManager">
	<summary>
  Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:WpfPrimeNumbers.My.Resources.Resources.Culture">
	<summary>
  Overrides the current thread's CurrentUICulture property for all
  resource lookups using this strongly typed resource class.
</summary>
</member><member name="T:WpfPrimeNumbers.My.Resources.Resources">
	<summary>
  A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>

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
Chief Technology Officer
Norway Norway
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions