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 12, 2024 01:43zielajzielajScore: 15,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 01:4315,35730,895,53512,475,0001,039,0002,269,184
2Dec 12, 2024 01:4315,40133,061,03813,553,00002,531,328
3Dec 12, 2024 01:4315,44830,607,35013,594,00002,449,408
4Dec 12, 2024 01:4315,49531,301,04913,636,00002,531,328
5Dec 12, 2024 01:4315,49833,844,11012,589,0001,049,0002,342,912
6Dec 12, 2024 01:4315,51635,863,81813,654,00002,347,008
7Dec 12, 2024 01:4315,51928,989,77213,657,00002,338,816
8Dec 12, 2024 01:4315,57631,249,56013,707,00002,347,008
9Dec 12, 2024 01:4315,64838,375,47212,711,0001,059,0002,531,328