final checks

pull/1118/head
mihirsuman0131@gmail.com 2023-01-15 23:18:13 +05:30
parent d8272848fd
commit 08b9259dbb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class Sieve_of_Eratosthenes {
public static void main(String[] args) { public static void main(String[] args) {
Scanner sc = new Scanner(System.in); Scanner sc = new Scanner(System.in);
System.out.print("Enter the maximum number upto which prime numbers are required: "); System.out.print("Enter the maximum number up to which prime numbers are required: ");
int n = sc.nextInt(); int n = sc.nextInt();
boolean[] isPrime = sieveOfEratosthenes(n); boolean[] isPrime = sieveOfEratosthenes(n);
System.out.print("Following are the prime numbers: "); System.out.print("Following are the prime numbers: ");