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 26, 2024 00:28zielajzielajScore: 4,159Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2024 00:274,00223,993,6892,348,0001,174,0002,273,280
2Dec 26, 2024 00:274,10920,622,9822,411,0001,205,0002,453,504
3Dec 26, 2024 00:274,11819,542,8142,416,0001,208,0002,465,792
4Dec 26, 2024 00:284,15922,719,8982,440,0001,220,0002,449,408
5Dec 26, 2024 00:284,27525,052,5392,508,0001,254,0002,461,696
6Dec 26, 2024 00:284,29319,233,7952,519,0001,259,0002,293,760