style: modify the output of scripts

Instead of separating output primes by newline, the scripts now separate
by spaces.
This commit is contained in:
Kiana Sheibani 2024-07-28 06:43:01 -04:00
parent 0e55a43863
commit a3b53b180c
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
3 changed files with 8 additions and 4 deletions

View file

@ -7,7 +7,7 @@ set nums (seq 2 $num)[..-2]
while test -n "$nums"
set prime $nums[1]
echo $prime
echo -n "$prime "
set -e nums_
for elem in $nums
@ -15,3 +15,5 @@ while test -n "$nums"
end
set nums $nums_
end
echo