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 listSep 29, 2026 10:06NicoNicoScore: 120,202Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 10:08119,553116,133,333104,205,0001,002,0002,113,536
2Sep 29, 2026 10:08119,725116,303,096104,311,0001,047,0002,113,536
3Sep 29, 2026 10:08119,895115,927,420104,382,0001,126,0002,113,536
4Sep 29, 2026 10:08120,153117,239,151104,732,0001,003,0002,113,536
5Sep 29, 2026 10:08120,202116,788,114104,774,0001,004,0002,113,536
6Sep 29, 2026 10:08120,205116,221,842104,778,0001,003,0002,113,536
7Sep 29, 2026 10:08120,206116,231,746104,711,0001,071,0002,113,536
8Sep 29, 2026 10:08120,355116,995,851104,882,0001,031,0002,113,536
9Sep 29, 2026 10:08120,407117,017,489104,897,0001,062,0002,113,536