Hola BlackZeroX
Soy nuevo y sé poco.
Perdona, solo he modificado un poco tu codigo.......
Public Function FactorizadorBlackZeroX(ByVal vNumber As Long) As String
Dim i As Long
Dim TmpArray() As Long
If vNumber < 0 Then Exit Function
If vNumber Mod 2= 0 Then
FactorizadorBlackZeroX = FactorizadorBlackZeroX(vNumber / 2) & "," & 2
Exit Function
End If
For i = 3 To Sqr(vNumber) step 2
If vNumber Mod i = 0 Then
FactorizadorBlackZeroX = FactorizadorBlackZeroX(vNumber / i) & "," & i
Exit Function
End If
Next i
FactorizadorBlackZeroX = vNumber
End Function
Espero que sirva...................
Un saludo a los dos
Soy nuevo y sé poco.
Perdona, solo he modificado un poco tu codigo.......
Public Function FactorizadorBlackZeroX(ByVal vNumber As Long) As String
Dim i As Long
Dim TmpArray() As Long
If vNumber < 0 Then Exit Function
If vNumber Mod 2= 0 Then
FactorizadorBlackZeroX = FactorizadorBlackZeroX(vNumber / 2) & "," & 2
Exit Function
End If
For i = 3 To Sqr(vNumber) step 2
If vNumber Mod i = 0 Then
FactorizadorBlackZeroX = FactorizadorBlackZeroX(vNumber / i) & "," & i
Exit Function
End If
Next i
FactorizadorBlackZeroX = vNumber
End Function
Espero que sirva...................
Un saludo a los dos