Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by ethan_smith

9 days ago

I can confirm this bug - your random number generation algorithm should ensure at least one prime appears in each set, perhaps by maintaining a pre-computed list of primes within your range and guaranteeing inclusion of at least one.

1 comment

ethan_smith

Reply

min2bro  7 days ago

Sure, I will take care of it. Thanks for the feedback

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities