From 421fbbc873d6204192d149bf30f15ec43de41fba Mon Sep 17 00:00:00 2001 From: Daniel M Date: Wed, 9 Feb 2022 17:12:47 +0100 Subject: [PATCH] Update euler5 example --- examples/euler5.nek | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/euler5.nek b/examples/euler5.nek index ec58d3c..bdf700f 100644 --- a/examples/euler5.nek +++ b/examples/euler5.nek @@ -10,7 +10,7 @@ loop should_continue { i <- 20; loop i >= 2; i = i - 1 { - if num % i != 0 { + if num % i { should_continue = 1; // break @@ -18,7 +18,7 @@ loop should_continue { } } - if should_continue == 1 { + if should_continue { num = num + 20; } }