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 listMar 10, 2026 04:14olliecrowolliecrowScore: 2,774,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2026 04:112,759,4612,458,905,6272,383,339,00044,987,000136,900,608
2Mar 10, 2026 04:142,765,6732,454,886,4362,367,825,00065,967,000136,904,704
3Mar 10, 2026 04:112,771,1012,461,114,1582,376,606,00061,963,000137,027,584
4Mar 10, 2026 04:142,774,8082,462,062,5662,383,883,00057,948,000136,794,112
5Mar 10, 2026 04:112,778,8112,466,118,6572,402,383,00042,971,000137,003,008
6Mar 10, 2026 04:142,788,2812,481,561,7202,403,714,00049,973,000136,900,608