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 23, 2026 19:32olliecrowolliecrowScore: 19,061Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 19:3318,95731,855,35415,641,0001,042,0002,310,144
2Apr 23, 2026 19:3318,97030,915,96015,651,0001,043,0002,310,144
3Apr 23, 2026 19:3318,98734,609,60215,665,0001,044,0002,338,816
4Apr 23, 2026 19:3319,04437,032,12915,712,0001,047,0002,297,856
5Apr 23, 2026 19:3319,06133,654,44314,801,0001,973,0002,306,048
6Apr 23, 2026 19:3319,07233,942,14515,735,0001,049,0002,572,288
7Apr 23, 2026 19:3319,08031,403,57915,742,0001,049,0002,301,952
8Apr 23, 2026 19:3319,09735,495,80815,756,0001,050,0002,338,816
9Apr 23, 2026 19:3319,15034,822,04215,799,0001,053,0002,310,144