Hacker News new | past | comments | ask | show | jobs | submit login

If the problem is outputting the primes, then storing them in a list is not a necessary part of that problem.

When writing ‘fizz buzz’, would you expect to return an array of 100 strings, some of which are numbers, some ‘fizz’es and some ‘buzz’es?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: