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 11, 2024 13:10zielajzielajScore: 21,953Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 13:1021,81838,514,26318,190,0001,010,0002,342,912
2Dec 11, 2024 13:1021,84343,783,92717,199,0002,023,0002,269,184
3Dec 11, 2024 13:1021,92440,766,01419,293,00002,269,184
4Dec 11, 2024 13:1021,92446,166,86319,293,00002,342,912
5Dec 11, 2024 13:1021,95344,056,62519,319,00002,531,328
6Dec 11, 2024 13:1021,96742,463,60919,331,00002,531,328
7Dec 11, 2024 13:1021,99343,507,01519,354,00002,338,816
8Dec 11, 2024 13:1022,01437,275,59318,353,0001,019,0002,269,184
9Dec 11, 2024 13:1022,09339,741,75719,442,00002,441,216