Skip to content

Commit

Permalink
prime_factors updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Falilah committed Sep 16, 2024
1 parent 8c31541 commit 416ca4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/prime-factors/.meta/example.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pub fn factors(n: u64) -> Array<u64> {
loop {
for i in 2..(num + 1) {
if num % i == 0 {
num /= i;
all_prime.append(i);
num /= i;
all_prime.append(i);

break;
break;
}
};
if num == 1 {
Expand Down

0 comments on commit 416ca4e

Please sign in to comment.