Skip to content

Instantly share code, notes, and snippets.

from fractions import gcd
number = 600851475143
def g(num):
return (x ** 2 + 1) % number
x = 2
y = 2
d = 1
while d == 1:
package br.ufpe.nti.controller.routing;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalTime;
import java.util.Calendar;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.boot.autoconfigure.SpringBootApplication;
package br.ufpe.nti;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EntityScan(basePackages = "br.ufpe.nti.model")
@EnableJpaRepositories(basePackages = "br.ufpe.nti.controller.repository")
@SpringBootApplication(scanBasePackages = "br.ufpe.nti")