Minichan

Topic: /prog/ challenge #1993: The Prime Matrix

Xarn started this discussion 1 month ago #133,866

People here seem to have forgotten to discuss /prog/ramming, so let me breathe some fresh air in this place. Let's have a good ol' /prague/ challenge, just like back in the days. Let's start with something simple.


The Challenge: The "Spiral Prime" Matrix
Create a function that generates an N x N spiral matrix populated exclusively with the first N2 prime numbers in ascending order.

Example for N = 3
The first 9 primes are: 2, 3, 5, 7, 11, 13, 17, 19, 23.
Your output should look like this:

[ 2,  3,  5]
[23,  11, 13]
[19,  17,  7]


Use any reasonable I/O formats that would be unsurprising for the language that you have chosen.
The deadline is the UTC noon of the first of April.
Shortest program wins. Good luck!

Anonymous B joined in and replied with this 1 month ago, 9 minutes later[^] [v] #1,426,277

Visit project euler, vibe code all the answers and knock the geniuses off the leaderboard.

Xarn (OP) replied with this 1 month ago, 11 hours later, 12 hours after the original post[^] [v] #1,426,363

@previous (B)
BUMP!

Anonymous C joined in and replied with this 1 month ago, 17 minutes later, 12 hours after the original post[^] [v] #1,426,369

raping prognigguhs!

Anonymous D joined in and replied with this 1 month ago, 1 day later, 1 day after the original post[^] [v] #1,426,587

The clock’s ticking!

Anonymous E joined in and replied with this 1 month ago, 1 day later, 3 days after the original post[^] [v] #1,427,139

Less than a day to go, and zero submissions. Are you all retarded? I thought it's a programming forum.
:

Please familiarise yourself with the rules and markup syntax before posting.