Generator based on y‐value - vjudeu/curves1000 GitHub Wiki
Looking at y-values, instead of x-values:
p=0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
modulo_root=(p+2)/9
y=0
b_value=7
is_on_curve=False
while not is_on_curve:
y_square=(y*y)%p
x_cube=(y_square-b_value)%p
x=x_cube.powermod(modulo_root,p)
is_on_curve=(x.powermod(3,p)==x_cube)
print(is_on_curve,hex(x),hex(y))
if not is_on_curve:
y+=1