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 16, 2024 23:34Mikhail ShirokovMikhail ShirokovScore: 765,148Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 23:34758,866690,771,505665,803,0001,999,0002,277,376
2Dec 16, 2024 23:34762,678697,160,733670,157,0001,000,0002,273,280
3Dec 16, 2024 23:34763,265695,028,260669,674,0001,999,0002,277,376
4Dec 16, 2024 23:34763,897695,754,257671,229,0001,000,0002,269,184
5Dec 16, 2024 23:34765,148703,366,516671,332,0001,998,0002,269,184
6Dec 16, 2024 23:34766,931695,989,862672,900,0001,999,0002,269,184
7Dec 16, 2024 23:34767,105698,482,786674,052,0001,000,0002,277,376
8Dec 16, 2024 23:34770,782699,970,944676,288,0002,000,0002,273,280
9Dec 16, 2024 23:34771,394704,106,986676,828,0001,999,0002,277,376