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 listSep 18, 2024 17:39Andrey LikhachevAndrey LikhachevScore: 50,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2024 17:3950,40772,498,45443,350,0001,008,0002,469,888
2Sep 18, 2024 17:3950,51867,120,07243,446,0001,010,0002,371,584
3Sep 18, 2024 17:3950,67766,327,98243,583,0001,013,0002,289,664