|
Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
#include <math.h>#include <stdio.h>Functions | |
| char | isprime (int no) |
| Check if the given number is prime. | |
| int | main () |
| Main function. | |
Problem 3 solution
Problem:
The prime factors of 13195 are 5,7,13 and 29. What is the largest prime factor of a given number N? e.g. for 10, largest prime factor = 5. For 17, largest prime factor = 17.