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 12:51zielajzielajScore: 4,113Success
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 12:513,97616,761,8842,333,0001,166,0002,461,696
2Dec 26, 2024 12:514,00724,778,2312,351,0001,175,0002,461,696
3Dec 26, 2024 12:514,03224,343,9613,548,00002,457,600
4Dec 26, 2024 12:514,03619,979,8732,368,0001,184,0002,457,600
5Dec 26, 2024 12:514,11319,256,1782,413,0001,206,0002,457,600
6Dec 26, 2024 12:514,12318,227,0562,419,0001,209,0002,461,696
7Dec 26, 2024 12:514,12319,611,7172,419,0001,209,0002,293,760
8Dec 26, 2024 12:514,14720,815,4902,433,0001,216,0002,461,696
9Dec 26, 2024 12:514,17419,984,8632,449,0001,224,0002,457,600