Fix primes bound on shell scripts
This commit is contained in:
parent
da579f08af
commit
12733ba5c6
2 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
read -P "" num
|
||||
echo
|
||||
|
||||
set nums (seq 2 $num)
|
||||
set nums (seq 2 $num)[..-2]
|
||||
|
||||
while test -n "$nums"
|
||||
set prime $nums[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue