This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
class Sieve_of_Eratosthenes { | |
public static void main(String[]args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.print("Enter Limit: "); | |
int i; // Used for determine Position of Array | |
int p; // Represents currently checked number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Objects; | |
import java.util.Scanner; | |
import java.math.BigInteger; | |
public class Fibonacci_Sequence { | |
static void range() { | |
Scanner scanner = new Scanner(System.in); | |
System.out.print("Up to what Position should the Sequence be calculated: "); | |
int size = scanner.nextInt(); | |
BigInteger[] Sequence = new BigInteger[size]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger; | |
import java.util.Scanner; | |
class RAS_Encryption_Key { | |
public static void main(String[]args) { | |
int Position = 0; // Used for defining a position in an Array | |
int prime0; // Becomes a random prime number | |
int prime1; // Becomes a random prime number |