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 02:06olliecrowolliecrowScore: 18,657Success
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 02:0918,63733,137,02315,376,0001,025,0002,506,752
2Apr 23, 2026 02:0918,64633,175,10715,384,0001,025,0002,502,656
3Apr 23, 2026 02:0918,65634,466,50815,392,0001,026,0002,506,752
4Apr 23, 2026 02:0918,65630,761,11515,392,0001,026,0002,498,560
5Apr 23, 2026 02:0918,65728,807,75515,393,0001,026,0002,338,816
6Apr 23, 2026 02:0918,65933,346,33915,394,0001,026,0002,338,816
7Apr 23, 2026 02:0918,69432,427,10415,423,0001,028,0002,494,464
8Apr 23, 2026 02:0918,72234,445,98715,447,0001,029,0002,502,656
9Apr 23, 2026 02:0918,79235,640,47515,504,0001,033,0002,490,368