Skip to content

Write a Program to Print Prime Numbers #1

@Ara225

Description

@Ara225

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!

Link to the coursework

N/A

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

How to get help

General advice on asking for help can be found on the curriculum pages.
You can always share your blockers in your class channel and get help from your colleagues.

Submission & Review

Fork the coursework repo to your own GitHub account.
Make regular small commits with clear messages.
When you are ready, open a Pull Request to the CYF repo. Make sure you fill in the PR template provided.
A volunteer will review your submission and send you feedback.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions