this post was submitted on 02 Dec 2025
115 points (97.5% liked)
Books
6960 readers
8 users here now
A community for all things related to Books.
Rules
- Be Nice. No personal attacks or hate speech.
- No spam. All posts should be related to books.
- No self promotion.
Official Bingo Posts:
Related Communities
Community icon by IconsBox (from freepik.com)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I had a Book about Java with a code demonstrating to get prime numbers.
The code just outputted odd numbers.
hate to tell you this but you may have copied it wrong
tbf it didn't say the output was only prime numbers
Nope. I remember the book also showed the output:
1
3
5
7
9 lol
that's amazing