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 22, 2024 11:35zielajzielajScore: 4,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 11:354,04822,238,6162,375,0001,187,0002,535,424
2Dec 22, 2024 11:354,05720,482,9462,380,0001,190,0002,449,408
3Dec 22, 2024 11:354,05820,133,8562,381,0001,190,0002,535,424
4Dec 22, 2024 11:354,07527,409,7062,391,0001,195,0002,453,504
5Dec 22, 2024 11:354,08518,702,7772,397,0001,198,0002,297,856
6Dec 22, 2024 11:354,10919,425,6402,411,0001,205,0002,535,424
7Dec 22, 2024 11:354,20520,762,9452,467,0001,233,0002,461,696
8Dec 22, 2024 11:354,20822,797,2212,469,0001,234,0002,453,504
9Dec 22, 2024 11:354,28921,359,3412,516,0001,258,0002,457,600