Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listDec 11, 2024 20:44zielajzielajScore: 19,231Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 20:4419,17446,916,80814,888,0001,985,0002,531,328
2Dec 11, 2024 20:4419,20336,380,99215,905,000994,0002,334,720
3Dec 11, 2024 20:4419,21639,923,18315,916,000994,0002,269,184
4Dec 11, 2024 20:4419,21831,057,39014,923,0001,989,0002,531,328
5Dec 11, 2024 20:4419,23132,765,99815,928,000995,0002,531,328
6Dec 11, 2024 20:4419,24943,203,12215,943,000996,0002,338,816
7Dec 11, 2024 20:4419,33332,004,43915,012,0002,001,0002,347,008
8Dec 11, 2024 20:4419,40641,162,11617,077,00002,338,816
9Dec 11, 2024 20:4420,46839,026,34417,012,0001,000,0002,269,184