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 25, 2026 06:11olliecrowolliecrowScore: 123,911Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 06:12123,598130,337,971105,746,0003,021,0002,338,816stderr
2Apr 25, 2026 06:12123,627129,412,019104,800,0003,992,0002,318,336stderr
3Apr 25, 2026 06:12123,630131,061,592103,805,0004,990,0002,510,848stderr
4Apr 25, 2026 06:12123,789126,860,344104,938,0003,997,0002,449,408stderr
5Apr 25, 2026 06:12123,911126,976,800106,041,0003,001,0002,445,312stderr
6Apr 25, 2026 06:12124,027125,008,284105,139,0004,005,0002,449,408stderr
7Apr 25, 2026 06:12124,106123,430,950105,207,0004,007,0002,449,408stderr
8Apr 25, 2026 06:12124,219127,370,033105,302,0004,011,0002,564,096stderr
9Apr 25, 2026 06:12124,365126,392,026106,430,0003,012,0002,449,408stderr