Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kenjackson
6 months ago
|
parent
|
context
|
favorite
| on:
Google CEO says more than a quarter of the company...
You don't need to append 'p' in the inner while loop more than once. Maybe instead of an array for keeping the list of prime factors do it in a set.
zeroonetwothree
6 months ago
|
next
[–]
It’s valid to return the multiplicity of each prime, depending on the goal of this.
justinpombrio
6 months ago
|
prev
[–]
https://www.wolframalpha.com/input?i=prime+factors+of+12
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: