Created
May 14, 2013 03:34
-
-
Save cmhobbs/5573473 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
unsigned long largest_prime_factor(n) { | |
return n; | |
} | |
int main() { | |
unsigned long n = 600851475143; | |
printf("The largest prime factor of %lu is %lu\n", largest_prime_factor(n), n); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment