4 ms·
https://claude.site/artifacts/e38182c3-840a-44ae-bc5a-8c2bb76a4925 https://claude.site/artifacts/e38182c3-840a-44ae-bc5a-8c2bb7... Output: % python /tmp/c
by lgas 2y ago
https://claude.site/artifacts/e38182c3-840a-44ae-bc5a-8c2bb76a4925 https://claude.site/artifacts/e38182c3-840a-44ae-bc5a-8c2bb7...
Output:
% python /tmp/collatz.py
Number of vCPUs available: 12
Checked Collatz conjecture for numbers 1 to 1000000
Number with longest sequence: 837799
Length of longest sequence: 525
Time taken: 2.08 seconds
python /tmp/collatz.py 19.47s user 0.41s system 728% cpu 2.731 total
- genewitch 2y agothat's good, i can consider paying for that service... I'll have to check the actual results, of course, but that's much cleaner than what all the other LLMs output
- GistNoesis 2y agoThere is a bug : N = 1000000 # Total numbers to check chunk_size = N // num_vcpus tasks = [(i * chunk_size + 1, (i + 1) * chunk_size) for i in range(num_vcpus)] When num_vcpus = 12, chunksize = 83333, and 12*chunk_size = 999996, therefore we don't check the last four numbers.
- genewitch 2y agothat's okay because that N=1000000 line wasn't part of the spec but at least allowed me to run it as is without loading the rest of the stuff i test.
- reducesuffering 2y agoNow consider that 99.9% of humans can't do this, and combine that with the model trajectory and you have a very concerning next 5 years...
- mr_toad 2y agoI’m not worried. You still need a someone to specify the problem in a way the LLM will understand and check the code and the results. For now, that still needs to be a programmer.
- AJSDfljff 2y agoIt will be interesting how long business people overestimate what they can do until the tools get good enough that it is okay again. Take small companies with eveyrone being business people besides the nerds in the IT department. If you don't have one security aware person, this IT department will write unsecure code without anyone in the company every questiong this every. You know like 'hidden' api keys in an mobile app everyone can extract, still using plaintext for passwords or md5, having ports open, old operating systems etc. etc.
- latexr 2y ago> Now consider that 99.9% of humans can't do this OK. Now consider that those same humans have no need to do it or even attempt it.