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 18:14olliecrowolliecrowScore: 13,432Success
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 18:1513,25738,053,39410,607,0001,060,0002,535,424
2Apr 24, 2026 18:1513,32727,154,96610,662,0001,066,0002,531,328
3Apr 24, 2026 18:1513,33029,914,59610,665,0001,066,0002,531,328
4Apr 24, 2026 18:1513,38027,139,38310,705,0001,070,0002,355,200
5Apr 24, 2026 18:1513,43227,880,1829,851,0001,970,0002,355,200
6Apr 24, 2026 18:1513,57625,760,4049,956,0001,991,0002,334,720
7Apr 24, 2026 18:1513,82129,977,60510,136,0002,027,0002,531,328
8Apr 24, 2026 18:1514,33830,309,39912,618,00002,338,816
9Apr 24, 2026 18:1514,48629,961,89011,686,0001,062,0002,519,040