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 20, 2024 19:02zielajzielajScore: 4,195Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 19:024,08918,479,1352,399,0001,199,0002,523,136
2Dec 20, 2024 19:024,15324,346,2982,437,0001,218,0002,265,088
3Dec 20, 2024 19:024,17018,546,2262,447,0001,223,0002,523,136
4Dec 20, 2024 19:024,17418,828,4352,449,0001,224,0002,527,232
5Dec 20, 2024 19:024,19521,538,8403,692,00002,273,280
6Dec 20, 2024 19:024,21119,331,7292,471,0001,235,0002,523,136
7Dec 20, 2024 19:024,30324,840,9862,525,0001,262,0002,265,088
8Dec 20, 2024 19:024,30621,534,2442,526,0001,263,0002,265,088
9Dec 20, 2024 19:024,45221,371,9961,959,0001,959,0002,527,232