#bcactf2 #!/usr/bin/env python3 import random import math import time import binascii p = 2**135 + 2**75 + 1 a = 313370 b = 12409401451673702436179381616844751057480 # discriminant is zero g = (313379, 9762458732130899649993884045943131856797, False) def negp(P): x,y,z = P return (-x,y,z) def dubp(P…