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 26, 2026 01:40olliecrowolliecrowScore: 152,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 01:41152,021149,956,405129,786,0003,993,0002,535,424stderr
2Apr 26, 2026 01:41152,147151,693,123129,894,0003,996,0002,535,424stderr
3Apr 26, 2026 01:41152,325149,633,233130,045,0004,001,0002,342,912stderr
4Apr 26, 2026 01:41152,325149,933,897130,045,0004,001,0002,363,392stderr
5Apr 26, 2026 01:41152,473150,046,513130,172,0004,005,0002,535,424stderr
6Apr 26, 2026 01:41152,475153,326,642131,152,0003,026,0002,535,424stderr
7Apr 26, 2026 01:41152,848150,288,316131,496,0003,011,0002,424,832stderr
8Apr 26, 2026 01:41152,927151,966,045131,564,0003,012,0002,543,616stderr
9Apr 26, 2026 01:41153,262147,851,366130,875,0003,996,0002,523,136stderr