Employers: discover CodinGame for tech hiring
Practice
Compete
1
Contribute
Learn
1
Log In
Sign Up
Ruby sample code
tbpgr
10.6K views
01
FizzBuzz
02
Fibonacci
03
Prime
04
Eto
3/4
Prime
Previous:
Fibonacci
Next:
Eto
Prime
Prime
1
2
3
4
require
'prime'
print Prime.take(
20
)
Run
9
4
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
CodinGame - Home
ABOUT US
CAREERS
PRIVACY
FAQ
CodinGame - Work
The #1 tech hiring platform
SCREENING
SOURCING
RETAIN
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants
Keyboard Shortcuts:
?
Show / hide this help menu
×