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 12, 2024 23:20zielajzielajScore: 8,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 23:208,72322,763,0157,676,00002,322,432
2Dec 12, 2024 23:208,77721,680,8397,724,00002,322,432
3Dec 12, 2024 23:208,79323,007,7776,633,0001,105,0002,269,184
4Dec 12, 2024 23:208,81323,684,0937,755,00002,531,328
5Dec 12, 2024 23:208,81626,638,0806,650,0001,108,0002,269,184
6Dec 12, 2024 23:208,81626,951,1416,650,0001,108,0002,531,328
7Dec 12, 2024 23:208,83025,885,7787,770,00002,531,328
8Dec 12, 2024 23:208,83425,332,1027,774,00002,318,336
9Dec 12, 2024 23:208,83824,664,8867,777,00002,330,624