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 listMay 7, 2024 09:54dpetruciidpetruciiScore: 7,923,935Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 09:547,898,7957,028,025,4826,950,939,18102,232,320
2May 7, 2024 09:547,923,9357,048,333,2166,973,062,70102,256,896
3May 7, 2024 09:547,953,1817,077,895,3836,998,799,46902,236,416