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 21, 2024 17:53zielajzielajScore: 4,091Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2024 17:534,07418,534,5312,390,0001,195,0002,445,312
2Dec 21, 2024 17:534,07722,732,1692,392,0001,196,0002,457,600
3Dec 21, 2024 17:534,08125,018,6972,394,0001,197,0002,449,408
4Dec 21, 2024 17:534,08822,696,3752,398,0001,199,0002,457,600
5Dec 21, 2024 17:534,09117,795,6862,400,0001,200,0002,461,696
6Dec 21, 2024 17:534,10919,413,7582,411,0001,205,0002,297,856
7Dec 21, 2024 17:534,13018,673,4742,423,0001,211,0002,461,696
8Dec 21, 2024 17:534,14923,943,4022,434,0001,217,0002,535,424
9Dec 21, 2024 17:534,33826,040,2622,545,0001,272,0002,457,600