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 29, 2026 01:20olliecrowolliecrowScore: 12,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 01:2212,73428,182,91510,188,0001,018,0002,527,232
2Apr 29, 2026 01:2212,73526,835,54510,189,0001,018,0002,383,872
3Apr 29, 2026 01:2212,74532,035,9849,177,0002,039,0002,408,448
4Apr 29, 2026 01:2212,75926,756,26710,208,0001,020,0002,379,776
5Apr 29, 2026 01:2212,76429,847,7388,170,0003,063,0002,387,968
6Apr 29, 2026 01:2212,85129,998,2439,253,0002,056,0002,387,968
7Apr 29, 2026 01:2212,85725,811,5369,258,0002,057,0002,400,256
8Apr 29, 2026 01:2212,88825,771,3368,249,0003,093,0002,387,968
9Apr 29, 2026 01:2213,03731,256,1759,387,0002,086,0002,375,680