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

In programmer terms, imagine you had to define the product function in Python. The most natural way to write it is:

    >>> def product(ints):
    ...   result = 1
    ...   for int in ints:
    ...     result *= int
    ...   return result
In which case there is no need to make 1 a prime as you already have:

    >>> product([])
    1


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: