Write a main method to get all the prime numbers until 100.
In order to calculate if a given integer n is prime it is necessary to check if the number is not divisible by any integer between 2 and the square root of n.
PI = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...Write a method to calculate the value of PI as the sum of the n first values of this series, where n is a method parameter.
Write a main method to calculate Pi as the sum of the 1000 first values.
Write a main method to print two temperature conversion tables, one for each convertions.
For example, if the given numbers are 30 and 105, the largest common divider is 15.
Simplified algorithm (for positive numbers):
WHILE A * B != 0 IF A>B A = A % B; ELSE B = B % A; the Largest common divider is A+B;