aboutsummaryrefslogtreecommitdiff
path: root/challenge-198/jo-37/perl/ch-2.sh
blob: 14174f9d2bf8ef20da044040ef9140a6205959ca (plain)
1
2
3
4
5
#!/bin/sh

# "prime_count" has inclusive ranges, so we need to adjust the limit.
# This neat subtlety was carefully avoided in the examples.
perl -MMath::Prime::Util=:all -E "say prime_count $1 - 1"