Advisor360° interview question

Leetcode-style medium (as the interviewer described it) algorithm that generates and arranges a 2-D array of prime numbers in a specific way.