Re:Asking an LLM to build a simple web tool
by GistNoesis on Thursday July 11, 2024 @05:26AM
(#40934914)
There 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.
I'll have to check the actual results, of course, but that's much cleaner than what all the other LLMs output