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 24, 2026 23:29olliecrowolliecrowScore: 13,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 23:3013,07730,260,41510,462,0001,046,0002,338,816
2Apr 24, 2026 23:3013,11332,391,66210,491,0001,049,0002,330,624
3Apr 24, 2026 23:3013,14628,269,07110,518,0001,051,0002,338,816
4Apr 24, 2026 23:3013,24330,273,71610,595,0001,059,0002,330,624
5Apr 24, 2026 23:3013,27634,549,90210,621,0001,062,0002,338,816
6Apr 24, 2026 23:3013,31931,586,46010,656,0001,065,0002,334,720
7Apr 24, 2026 23:3013,48130,858,7839,887,0001,977,0002,347,008
8Apr 24, 2026 23:3013,59528,507,9759,970,0001,994,0002,338,816
9Apr 24, 2026 23:3014,59530,387,10210,868,0001,976,0002,318,336