Post History
MATL, 19 bytes XH:YqtZ*!tsH=f1Z)Z) Try it online! I'm still a novice at MATL, so I am all ears to any improvements. XH:YqtZ*!tsH=f1Z)Z) XH - copy implicit input to H clipboa...
#1: Initial revision
# [MATL](hub.com/lmendo/MATL), 19 bytes
```
XH:YqtZ*!tsH=f1Z)Z)
```
[Try it online!](https://tio.run/##y00syfn/P8LDKrKwJEpLsaTYwzbNMEozSvP/f0MDAA)
I'm still a novice at MATL, so I am all ears to any improvements.
```
XH:YqtZ*!tsH=f1Z)Z)
XH - copy implicit input to H clipboard
: - range 1..n
Yq - vectorized n-th prime
t - duplicate
Z* - cartesian product
! - transpose
t - duplicate
s - sum columns
H= - paste from clipboard H and vectorized equal
f - find indices of nonzeros
1Z) - first index returned from f
Z) - use that index to find first pair from Z*!
```
