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 13, 2024 21:17zielajzielajScore: 7,488Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 21:177,38923,665,2556,502,00002,269,184
2Dec 13, 2024 21:177,44522,644,2725,460,0001,092,0002,269,184
3Dec 13, 2024 21:177,44529,346,4406,552,00002,506,752
4Dec 13, 2024 21:177,45622,490,0336,561,00002,269,184
5Dec 13, 2024 21:177,48823,737,4165,491,0001,098,0002,506,752
6Dec 13, 2024 21:177,50525,141,1696,604,00002,510,848
7Dec 13, 2024 21:177,51023,064,9056,609,00002,269,184
8Dec 13, 2024 21:177,59523,863,0406,684,00002,510,848
9Dec 13, 2024 21:177,64428,322,7665,606,0001,121,0002,531,328