Each issue of The New Yorker offers poetry, but seldom do the poems link to mathematics. However, the issue for March 8, 2021 offers us "Number Theory" by poet and translator Rosanna Warren. Here are a few of its lines:
. . . like you, inquisitive. You sit
taut in your chair, whispering, as you probe
the gaps between prime numbers. Until infinity.
It's pattern you seek. The opening through which
your thought will glide suddenly into a lit space
and be at home. . . .
Here is a link to Warren's complete poem.