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 28, 2026 12:32Dominique GarmierDominique GarmierScore: 10,627Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:3310,54726,670,7666,188,0003,094,0002,326,528
2Apr 28, 2026 12:3310,56231,122,8327,230,0002,065,0002,486,272
3Apr 28, 2026 12:3310,57125,346,6108,270,0001,033,0002,326,528
4Apr 28, 2026 12:3310,60021,649,8558,292,0001,036,0002,297,856
5Apr 28, 2026 12:3310,62731,146,1927,274,0002,078,0002,465,792
6Apr 28, 2026 12:3310,67323,682,9647,306,0002,087,0002,486,272
7Apr 28, 2026 12:3310,70925,388,7358,377,0001,047,0002,482,176
8Apr 28, 2026 12:3310,76529,423,2258,422,0001,052,0002,486,272
9Apr 28, 2026 12:3310,84622,276,3268,485,0001,060,0002,322,432