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 20, 2026 14:22olliecrowolliecrowScore: 14,062Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 14:2313,97924,125,03911,277,0001,025,0002,502,656
2Apr 20, 2026 14:2314,04727,153,14811,332,0001,030,0002,244,608
3Apr 20, 2026 14:2314,05027,163,33010,304,0002,060,0002,494,464
4Apr 20, 2026 14:2314,05927,858,51811,341,0001,031,0002,494,464
5Apr 20, 2026 14:2314,06231,855,31711,344,0001,031,0002,494,464
6Apr 20, 2026 14:2314,06531,987,50411,347,0001,031,0002,494,464
7Apr 20, 2026 14:2314,07026,752,76611,351,0001,031,0002,494,464
8Apr 20, 2026 14:2314,07030,182,58511,351,0001,031,0002,490,368
9Apr 20, 2026 14:2314,07828,974,04511,357,0001,032,0002,494,464