From 4012ef282b2effc208bb550f301fbe0937f430e2 Mon Sep 17 00:00:00 2001 From: Jörg Sommrey <28217714+jo-37@users.noreply.github.com> Date: Tue, 3 Jan 2023 22:17:17 +0100 Subject: Solution to task 2 --- challenge-198/jo-37/perl/ch-2.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 challenge-198/jo-37/perl/ch-2.sh 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" -- cgit