Skip to content

Instantly share code, notes, and snippets.

@defund
defund / infinity.sage
Last active April 5, 2022 22:23
hxp CTF 2021
import collections
from Crypto.Hash import SHA512
import itertools
import json
from multiprocessing import Pool
from tqdm import tqdm
proof.all(False)
ls = list(prime_range(3,117))
@defund
defund / jeopardy-carmichael.py
Last active April 5, 2022 22:23
redpwnCTF 2020
from functools import reduce
from math import prod
from tqdm import tqdm
import random
import gmpy2
def rabin(n):
if n == 2: return True
if n%2 == 0: return False
r,d = 0,n-1