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 2, 2026 22:05A_ShamanA_ShamanScore: 80,628Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 22:0780,18280,035,96369,422,0001,139,0002,113,536
2Jul 2, 2026 22:0780,21080,432,50169,327,0001,258,0002,113,536
3Jul 2, 2026 22:0780,48780,392,51869,597,0001,232,0002,113,536
4Jul 2, 2026 22:0780,62580,356,45969,723,0001,227,0002,113,536
5Jul 2, 2026 22:0780,62880,740,71069,710,0001,243,0002,113,536
6Jul 2, 2026 22:0780,71880,867,81869,797,0001,235,0002,113,536
7Jul 2, 2026 22:0780,78980,910,40269,845,0001,250,0002,113,536
8Jul 2, 2026 22:0780,83881,009,18569,882,0001,256,0002,113,536
9Jul 2, 2026 22:0781,11780,859,24770,134,0001,249,0002,113,536