Let's show them how it's done with primes + awk. Edit. They have a -d option which also shows gaps!!! Too strong:
sudo apt install bsdgames
primes -d 1 100 | awk '/\(2\)/{print $1 - 2, $1 }'
gives us the list of all twin primes up to 100:
0 2
3 5
5 7
11 13
17 19
29 31
41 43
59 61
71 73
Tested on Ubuntu 22.10.

Articles by others on the same topic (1)

Twin prime by Wikipedia Bot 0
Twin primes are pairs of prime numbers that have a difference of two. In other words, if \( p \) and \( p+2 \) are both prime numbers, then they are considered twin primes. For example, (3, 5), (11, 13), and (17, 19) are all pairs of twin primes. The concept of twin primes is an interesting area of study in number theory.