Write a Program to Print Prime Numbers

Open Beginner friendly
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
backend

Research direction

Start with the Java program's Main method and create the requested private method for printing prime numbers up to 1000. Call it from main, use sensible names, and add documentation where needed. Test the program and confirm that it prints all prime numbers through 1000.

Written by the indexing model from the issue text.

Description

🎯 Topic Programming Fundamentals 🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 1 Core

Create a private method to print all prime numbers up to 1000. Call this from a main method. Remember to use sensible method and variable names, and add documentation where necessary! Remember to use the debugger if something goes wrong!

Learning Objectives
  • Create a private Java method to print all prime numbers up to 1000
  • Call this method from a Main method
  • Test the Java program
Why are we doing this?

To practice Java development

Maximum time in hours

1

Dominant language
No language data
Stars
1
Forks
11
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeYourFuture/Module-Java

All issues in CodeYourFuture/Module-Java

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.