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 14, 2024 16:34exebookexebookScore: 8,718,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 16:348,717,9687,804,102,6587,671,811,42002,297,856
2May 14, 2024 16:348,718,5187,793,537,5457,672,295,91102,256,896
3May 14, 2024 16:348,719,0417,779,655,0117,672,756,31502,220,032