Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*The prime factors of 13195 are 5, 7, 13 and 29.
- What is the largest prime factor of the number 600851475143 ?
- 1. Find Square Root of 600851475143. (Roughly 548111)
- 2. Create Incremental counter to 548111. (This is called i)
- 3. Divide all 548111 by all numbers up to 548111.
- 4. Weed out Non-Prime Factors.
- 5. Prime Factors should remain. Locate the biggest one.
- */
- #include <stdio.h>
- int i=1;
- int try=1;
- int main(){
- for(i=1; i<548111; i++){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement