Skip to content

Instantly share code, notes, and snippets.

@cmhobbs
Created May 14, 2013 03:34
Show Gist options
  • Save cmhobbs/5573473 to your computer and use it in GitHub Desktop.
Save cmhobbs/5573473 to your computer and use it in GitHub Desktop.
#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