Skip to content

Commit

Permalink
agregar bucle
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoromana committed Apr 10, 2012
1 parent 79c596b commit 35ba5ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aromana/PrimeFactors.rb
Expand Up @@ -7,8 +7,7 @@ def calculaPrimo(numero)

@PRIMO = 2


if numero % @PRIMO ==0
while numero % @PRIMO ==0 do
numero = numero / @PRIMO
lista[index] = @PRIMO
index = index + 1
Expand Down

0 comments on commit 35ba5ff

Please sign in to comment.