Saturday Questions
Questions on Prime Numbers
- Write a program to check if a number is prime.
- Write a program to find all prime numbers in a range.
- Find the largest prime factor of a number.
- Find the sum of all prime factors of a number.
- Find the lowest prime factor of a number.
- Check whether a number has at least 3 distinct prime factors.
- Check if a number is a twisted prime. Eg 79 and 97.
- Find the kth prime factor of number.
- Check if a number is a prime number and a Fibonacci number.
- Find a number with exactly n prime factors.
Post your answers in the discussion boxes below.
0 Comments