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 19, 2024 14:52zielajzielajScore: 4,459Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 14:524,42517,488,4333,894,00002,527,232
2Dec 19, 2024 14:524,44822,577,5721,957,0001,957,0002,531,328
3Dec 19, 2024 14:524,45716,286,1491,961,0001,961,0002,535,424
4Dec 19, 2024 14:524,45920,869,8351,962,0001,962,0002,265,088
5Dec 19, 2024 14:524,45925,618,6811,962,0001,962,0002,523,136
6Dec 19, 2024 14:524,46019,102,3152,944,000981,0002,269,184
7Dec 19, 2024 14:524,46416,918,8431,964,0001,964,0002,535,424
8Dec 19, 2024 14:524,47720,039,4561,970,0001,970,0002,269,184
9Dec 19, 2024 14:524,48619,327,2631,974,0001,974,0002,531,328