Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am not familiar with Perl at all, though I am with list comprehensions, and FWIW I find the code very readable. (Though the lambda syntax was not obvious at first.)

What I would worry about is performance. But we are talking about top ten numbers, so whatever. (If it does actually matter, just precompute the lists.) But for larger sets I would check how is-prime is actually implemented :)

[EDIT: Grammar.]



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

Search: