Factor a number using Shor's algorithm.
Declaration Syntax
C# | Visual Basic | Visual C++ |
bool Factor( int NumberToFactor, out int Factor1, out int Factor2 )
Function Factor ( _ NumberToFactor As Integer, _ <OutAttribute> ByRef Factor1 As Integer, _ <OutAttribute> ByRef Factor2 As Integer _ ) As Boolean
bool Factor( int NumberToFactor, [OutAttribute] int% Factor1, [OutAttribute] int% Factor2 )
Parameters
- NumberToFactor (Int32)
- The number to factor
- Factor1 ( Int32 %)
- The first factor of the number
- Factor2 ( Int32 %)
- The second factor of the number
Return Value
False if the number could not be factored. In this
case the two output variables will be 0.