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:04Josu San MartinJosu San MartinScore: 47,617Success
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:0447,46366,700,74340,749,0001,018,0002,449,408
2Jan 17, 2026 06:0447,50764,346,46039,816,0001,990,0002,453,504
3Jan 17, 2026 06:0447,61673,166,26440,905,000997,0002,310,144
4Jan 17, 2026 06:0447,61766,606,93039,908,0001,995,0002,355,200
5Jan 17, 2026 06:0447,61868,950,49039,909,0001,995,0002,285,568
6Jan 17, 2026 06:0447,62063,961,35939,911,0001,995,0002,445,312