Cuemon .NET Framework
IsPrime Method

The positive integer to determine whether is a prime number.
Determines whether the specified value is a prime number.
Syntax
'Declaration
 
Public Shared Function IsPrime( _
   ByVal value As Integer _
) As Boolean
public static bool IsPrime( 
   int value
)

Parameters

value
The positive integer to determine whether is a prime number.

Return Value

true if the specified value is a prime number; otherwise, false.
Exceptions
ExceptionDescription
System.ArgumentExceptionvalue has a value smaller than 0.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NumberUtility Class
NumberUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback