diff options
| author | Jörg Sommrey <28217714+jo-37@users.noreply.github.com> | 2023-01-03 22:17:17 +0100 |
|---|---|---|
| committer | Jörg Sommrey <28217714+jo-37@users.noreply.github.com> | 2023-01-06 14:28:30 +0100 |
| commit | 4012ef282b2effc208bb550f301fbe0937f430e2 (patch) | |
| tree | 0600fe3a6c9e46ef7561cf5988ac039fbfcaa4e6 | |
| parent | 011eecc4681e6e6ae327ba316b4735b0c84d9870 (diff) | |
| download | perlweeklychallenge-club-4012ef282b2effc208bb550f301fbe0937f430e2.tar.gz perlweeklychallenge-club-4012ef282b2effc208bb550f301fbe0937f430e2.tar.bz2 perlweeklychallenge-club-4012ef282b2effc208bb550f301fbe0937f430e2.zip | |
Solution to task 2
| -rwxr-xr-x | challenge-198/jo-37/perl/ch-2.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-198/jo-37/perl/ch-2.sh b/challenge-198/jo-37/perl/ch-2.sh new file mode 100755 index 0000000000..14174f9d2b --- /dev/null +++ b/challenge-198/jo-37/perl/ch-2.sh @@ -0,0 +1,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" |
