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 listApr 24, 2026 00:46olliecrowolliecrowScore: 12,975Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 00:4612,87927,237,33210,304,0001,030,0002,568,192
2Apr 24, 2026 00:4612,96737,260,72710,374,0001,037,0002,301,952
3Apr 24, 2026 00:4612,96834,380,99810,375,0001,037,0002,301,952
4Apr 24, 2026 00:4612,97127,894,42310,378,0001,037,0002,560,000
5Apr 24, 2026 00:4612,97529,209,97310,380,0001,038,0002,310,144
6Apr 24, 2026 00:4612,98228,781,04410,387,0001,038,0002,306,048
7Apr 24, 2026 00:4612,98432,985,0489,349,0002,077,0002,338,816
8Apr 24, 2026 00:4613,08527,218,21910,469,0001,046,0002,310,144
9Apr 24, 2026 00:4613,10527,563,09710,485,0001,048,0002,379,776