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 13, 2024 15:13zielajzielajScore: 7,860Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 15:137,71728,078,4166,791,00002,314,240
2Dec 13, 2024 15:137,83523,630,1365,910,000985,0002,531,328
3Dec 13, 2024 15:137,84521,869,3545,918,000986,0002,318,336
4Dec 13, 2024 15:137,84921,841,8745,921,000986,0002,269,184
5Dec 13, 2024 15:137,86024,349,4215,929,000988,0002,531,328
6Dec 13, 2024 15:137,86123,577,8835,930,000988,0002,314,240
7Dec 13, 2024 15:137,86425,316,5645,932,000988,0002,531,328
8Dec 13, 2024 15:137,86425,290,9016,920,00002,318,336
9Dec 13, 2024 15:138,12729,687,3286,131,0001,021,0002,531,328