Algorithms_in_C  1.0.0
Set of algorithms implemented in C.
sol1.c File Reference

Problem 3 solution More...

#include <math.h>
#include <stdio.h>
Include dependency graph for sol1.c:

Functions

char isprime (int no)
 Check if the given number is prime.
 
int main ()
 Main function.
 

Detailed Description

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.