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 16, 2024 12:50zielajzielajScore: 5,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 12:505,20020,540,4193,432,0001,144,0002,269,184
2Dec 16, 2024 12:505,23326,386,0614,605,00002,531,328
3Dec 16, 2024 12:505,25122,514,4094,621,00002,531,328
4Dec 16, 2024 12:505,25322,690,3894,623,00002,506,752
5Dec 16, 2024 12:505,27225,206,5244,639,00002,510,848
6Dec 16, 2024 12:505,35126,677,9674,709,00002,510,848
7Dec 16, 2024 12:505,35720,112,3924,714,00002,510,848
8Dec 16, 2024 12:505,36122,221,9514,718,00002,355,200
9Dec 16, 2024 12:505,37519,843,8314,730,00002,510,848