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 22:08zielajzielajScore: 3,775Success
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 22:083,71319,747,7542,178,0001,089,0002,371,584
2Dec 30, 2024 22:083,77517,069,1712,215,0001,107,0002,375,680
3Dec 30, 2024 22:083,79818,249,5312,228,0001,114,0002,535,424