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 15, 2024 01:34zielajzielajScore: 6,184Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 01:346,11724,565,2735,383,00002,506,752
2Dec 15, 2024 01:346,16624,193,4605,426,00002,523,136
3Dec 15, 2024 01:346,17228,063,7295,431,00002,531,328
4Dec 15, 2024 01:346,17724,395,0815,436,00002,531,328
5Dec 15, 2024 01:346,18423,132,0475,442,00002,531,328
6Dec 15, 2024 01:346,19820,584,4595,454,00002,531,328
7Dec 15, 2024 01:346,20719,652,7444,370,0001,092,0002,510,848
8Dec 15, 2024 01:346,24023,638,1035,491,00002,531,328
9Dec 15, 2024 01:346,32223,456,9894,451,0001,112,0002,531,328