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 01:17zielajzielajScore: 8,753Success
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 01:158,64227,143,2487,605,00002,269,184
2Dec 13, 2024 01:158,68121,137,8767,639,00002,269,184
3Dec 13, 2024 01:158,68823,157,9207,645,00002,330,624
4Dec 13, 2024 01:158,69924,721,5527,655,00002,531,328
5Dec 13, 2024 01:158,70022,845,1626,563,0001,093,0002,318,336
6Dec 13, 2024 01:158,74724,319,0827,697,00002,322,432
7Dec 13, 2024 01:178,75323,911,9927,703,00002,531,328
8Dec 13, 2024 01:178,78426,997,5747,730,00002,330,624
9Dec 13, 2024 01:158,82725,815,4177,768,00002,269,184
10Dec 13, 2024 01:178,84426,574,7037,783,00002,322,432
11Dec 13, 2024 01:158,84728,467,1086,673,0001,112,0002,326,528
12Dec 13, 2024 01:158,99220,249,5967,913,00002,531,328