diff --git a/1985/august/primes.sh b/1985/august/primes.sh index e64d220c4..8ce8d97ea 100755 --- a/1985/august/primes.sh +++ b/1985/august/primes.sh @@ -15,7 +15,7 @@ if [[ "$#" -ge 1 ]]; then fi if [[ -n "$PRIMES" ]]; then - while read -r n; do primes "$n" $((n + 1)); done < <((./august | head -n "$COUNT" )) + while read -r n; do primes "$n" $((n + 1)); done < <((./august | head -n "$COUNT" |sed '/^$/d')) else echo "primes not installed" 1>&2 echo 1>&2