Project Euler Homework
Classes | Functions | Variables

003.cpp File Reference

Find the largest prime factor of a composite number. More...

#include <iostream>
#include <cmath>

Go to the source code of this file.

Classes

class  largeN
 Do square root of a large number. More...

Functions

int main ()

Variables

unsigned ten = 1e4

Detailed Description

Find the largest prime factor of a composite number.

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143?

Definition in file 003.cpp.


Variable Documentation

unsigned ten = 1e4

split the number to 4-digits

Definition at line 14 of file 003.cpp.

 All Classes Files Functions Variables