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 03:49olliecrowolliecrowScore: 12,776Success
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 03:5012,48228,947,3328,988,0001,997,0002,310,144
2Apr 24, 2026 03:5012,68128,745,7679,131,0002,029,0002,310,144
3Apr 24, 2026 03:5012,69528,285,8008,125,0003,047,0002,306,048
4Apr 24, 2026 03:5012,72829,406,0779,165,0002,036,0002,306,048
5Apr 24, 2026 03:5012,77626,188,3099,199,0002,044,0002,379,776
6Apr 24, 2026 03:5012,79231,757,06810,234,0001,023,0002,400,256
7Apr 24, 2026 03:5012,80526,458,72710,245,0001,024,0002,375,680
8Apr 24, 2026 03:5012,81826,001,3899,229,0002,051,0002,379,776
9Apr 24, 2026 03:5012,85429,391,54810,284,0001,028,0002,387,968