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 29, 2026 08:37olliecrowolliecrowScore: 24,305Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 08:3824,23642,554,75320,313,0001,015,0002,306,048stderr
2Apr 29, 2026 08:3824,24838,529,71220,323,0001,016,0002,338,816stderr
3Apr 29, 2026 08:3824,25739,501,32020,331,0001,016,0002,564,096stderr
4Apr 29, 2026 08:3824,30041,903,14321,384,00002,564,096stderr
5Apr 29, 2026 08:3824,30538,015,56520,371,0001,018,0002,310,144stderr
6Apr 29, 2026 08:3824,30640,322,69620,372,0001,018,0002,338,816stderr
7Apr 29, 2026 08:3824,30737,346,38920,373,0001,018,0002,560,000stderr
8Apr 29, 2026 08:3824,33040,862,99920,392,0001,019,0002,560,000stderr
9Apr 29, 2026 08:3824,43242,543,79421,501,00002,551,808stderr