> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/m/minimum_primes.md).

# Minimum primes

```ruby
var lists = [
    [ 5,45,23,21,67],
    [43,22,78,46,38],
    [ 9,98,12,54,53],
]
 
say lists.zip.map { next_prime(.max - 1) }
```

#### Output:

```
[43, 101, 79, 59, 67]
```
