user
Primes   **n,   m,**   and   **p**   are   *strange unique primes*   if   **n,   m,**   and   **p**   are unique and their sum     **n + m + p**     is also prime. Assume **n** < **m** < **p**.

Task
:   * Find all triplets of strange unique primes in which   **n,   m,**   and   **p**   are all less than   **30**.
    * (stretch goal)   Show the count (only) of all the triplets of strange unique primes in which     **n, m,** and **p**    are all less than   **1,000**.
assistant
(formerly Perl 6)

```
# 20210312 Raku programming solution

for 30, 1000 -> \k {
   given (2..k).grep(*.is-prime).combinations(3).grep(*.sum.is-prime) {
      say "Found ", +$_, " strange unique prime triplets up to ", k
   }
}

```

Output:

```
Found 42 strange unique prime triplets up to 30
Found 241580 strange unique prime triplets up to 1000

```