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 30, 2024 21:21zielajzielajScore: 3,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 21:213,60721,123,1651,058,0002,116,0002,461,696
2Dec 30, 2024 21:213,66119,345,5641,074,0002,148,0002,461,696
3Dec 30, 2024 21:213,68623,647,1131,081,0002,163,0002,469,888