Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
neilwilson
on Dec 18, 2019
|
parent
|
context
|
favorite
| on:
I thought I understood recursion
Can you cheat?
#!/usr/bin/env ruby require 'prime'
def find_prime(nth) Prime.lazy.drop(nth-1).first end
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
#!/usr/bin/env ruby require 'prime'
def find_prime(nth) Prime.lazy.drop(nth-1).first end