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 15, 2024 02:43zielajzielajScore: 5,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 02:435,89218,863,5074,148,0001,037,0002,531,328
2Dec 15, 2024 02:435,89419,175,0424,150,0001,037,0002,510,848
3Dec 15, 2024 02:435,93320,650,0084,177,0001,044,0002,531,328
4Dec 15, 2024 02:435,94022,094,3214,182,0001,045,0002,531,328
5Dec 15, 2024 02:435,96920,110,9673,152,0002,101,0002,510,848
6Dec 15, 2024 02:435,97425,584,9324,206,0001,051,0002,510,848
7Dec 15, 2024 02:435,98522,468,8664,214,0001,053,0002,506,752
8Dec 15, 2024 02:436,12723,014,8485,392,00002,510,848
9Dec 15, 2024 02:437,64324,286,7096,726,00002,531,328