Skip to the content.

Pretty Average Primes

Problem here

Solution Code

Approach

I'm honestly pretty surprised this solution passed (especially in Python) anyways, create a function to do the task T times. The function ("the task") is uh... loop through absolutely every number between 2 and N*2 then see if it's prime by looping through every number between 2 and the square root of the target number yeah. I'm not sure how this passed on time but it works.