[ot][spam][log] attempt bits: talk to a language model on list
mailbombbin
mailbombbin at gmail.com
Mon Sep 11 14:27:01 PDT 2023
I slightly raised the model quality and got this :)
> Write code that evaluates the probability of whether or not random strings have square roots. Do not comment on the code.
def has_square_root(s):
try:
int(s) ** 0.5
return True
except ValueError:
return False
print(has_square_root("16")) # True
print(has_square_root("17")) # False
print(has_square_root("abc")) # False
More information about the cypherpunks
mailing list