79324256

Date: 2025-01-02 15:45:01
Score: 0.5
Natty:
Report link

List not sieve. I think a little faster.

pTable = lambda n: (n>1)*[2] + (n>2)*[3] + [x for x in range(5,n+1) if (x%6 in [1,5]) and all((x%y != 0 and x%(y+2) !=0) for y in range(5,int(x**0.5)+1,6))]
print(pTable(10**3))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andy Richter