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 11:23olliecrowolliecrowScore: 150,782Success
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 11:24150,453151,226,018129,390,0003,009,0002,461,696stderr
2Apr 24, 2026 11:24150,706149,965,571129,608,0003,014,0002,334,720stderr
3Apr 24, 2026 11:24150,732154,187,601129,631,0003,014,0002,334,720stderr
4Apr 24, 2026 11:24150,780155,319,102129,672,0003,015,0002,441,216stderr
5Apr 24, 2026 11:24150,782151,109,937129,674,0003,015,0002,453,504stderr
6Apr 24, 2026 11:24150,850150,351,253129,731,0003,017,0002,424,832stderr
7Apr 24, 2026 11:24151,028153,074,560128,908,0003,997,0002,453,504stderr
8Apr 24, 2026 11:24151,097152,790,952128,967,0003,999,0002,449,408stderr
9Apr 24, 2026 11:24151,837148,820,248129,629,0003,988,0002,318,336stderr