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 listJan 17, 2026 06:44Josu San MartinJosu San MartinScore: 35,481Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:4435,35152,705,73029,102,0002,007,0002,285,568
2Jan 17, 2026 06:4435,37753,898,76728,120,0003,012,0002,449,408
3Jan 17, 2026 06:4435,47253,099,88828,195,0003,020,0002,375,680
4Jan 17, 2026 06:4435,48154,363,21729,209,0002,014,0002,449,408
5Jan 17, 2026 06:4435,52455,477,50230,253,0001,008,0002,449,408
6Jan 17, 2026 06:4435,53453,069,19631,270,00002,457,600