Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Determines prime numbers in the specified range and prints them out in console, made for my Java OOP1 lessons.

Notifications You must be signed in to change notification settings

sero583/SieveOfEratosthenes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

Due to wrong (and mere) implementation of the algorithm, it did what it should, yes; but it didn't do the way as it should be. You can go to an update version (where the alogrithm equals the here.

SieveOfEratosthenes

This is a very basic and small console-application. It prints out all prime numbers until the user-specified range and starts at counting (logically) at 2. This was created for my computer science class Java OOP1. Same as DebtCalculator.

Usage

  • Download the JAR at the top of this repository
  • Execute the command:
    java -jar SieveOfErastosthenes.jar <int: maxRange>
  • E.g. for all prime numbers between 2-100, you do the following command:
    java -jar SieveOfErastosthenes.jar 100

About

Determines prime numbers in the specified range and prints them out in console, made for my Java OOP1 lessons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages