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 00:22zielajzielajScore: 6,842Success
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 00:226,74123,097,0714,944,000988,0002,531,328
2Dec 15, 2024 00:226,74121,464,2864,944,000988,0002,506,752
3Dec 15, 2024 00:226,80725,418,8334,992,000998,0002,265,088
4Dec 15, 2024 00:226,84225,523,9604,014,0002,007,0002,510,848
5Dec 15, 2024 00:226,84726,870,6454,017,0002,008,0002,269,184
6Dec 15, 2024 00:226,84922,062,4294,018,0002,009,0002,519,040