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 29, 2026 00:14olliecrowolliecrowScore: 25,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 00:1725,45530,473,79220,365,0002,036,0002,375,680
2Apr 29, 2026 00:1725,59530,557,90020,477,0002,047,0002,359,296
3Apr 29, 2026 00:1725,60647,574,57120,486,0002,048,0002,506,752
4Apr 29, 2026 00:1725,73030,592,56520,585,0002,058,0002,375,680
5Apr 29, 2026 00:1725,74330,607,52520,595,0002,059,0002,359,296
6Apr 29, 2026 00:1725,75230,678,38321,632,0001,030,0002,342,912
7Apr 29, 2026 00:1725,90730,724,84621,763,0001,036,0002,375,680
8Apr 29, 2026 00:1725,91730,714,46621,721,0001,086,0002,523,136
9Apr 29, 2026 00:1725,98430,768,75021,827,0001,039,0002,375,680