Skip to content

Instantly share code, notes, and snippets.

#include <string.h>
#include <stdio.h>
#include <math.h>
#include <inttypes.h>
int64_t divide_into_largest_factor(int64_t input) {
int64_t divisor = 2;
if (2 < input) {
while (divisor < (sqrt(input)+1)) {
if (input % divisor == 0) {