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 listJul 31, 2026 21:08Warren FuWarren FuScore: 7,374,165Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 21:117,348,6476,477,663,9256,464,808,0002,002,0002,113,536
2Jul 31, 2026 21:117,350,4826,478,654,1316,466,417,0002,008,0002,117,632
3Jul 31, 2026 21:117,364,3136,491,150,5386,477,592,0003,004,0002,117,632
4Jul 31, 2026 21:117,373,0776,498,447,8316,486,302,0002,006,0002,117,632
5Jul 31, 2026 21:117,374,1656,500,107,9836,486,058,0003,208,0002,113,536
6Jul 31, 2026 21:117,376,6066,501,593,2366,489,414,0002,000,0002,117,632
7Jul 31, 2026 21:117,384,8056,509,462,9566,496,629,0002,000,0002,117,632
8Jul 31, 2026 21:117,398,2406,520,927,7006,507,432,0003,020,0002,117,632
9Jul 31, 2026 21:117,441,1976,558,455,4586,546,254,0002,000,0002,117,632