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 28, 2026 12:08Dominique GarmierDominique GarmierScore: 10,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:0910,36132,534,2497,092,0002,026,0002,367,488
2Apr 28, 2026 12:0910,36421,976,0806,081,0003,040,0002,367,488
3Apr 28, 2026 12:0910,43123,487,6388,160,0001,020,0002,367,488
4Apr 28, 2026 12:0910,43925,092,3518,167,0001,020,0002,318,336
5Apr 28, 2026 12:0910,45329,684,6438,177,0001,022,0002,371,584
6Apr 28, 2026 12:0910,45428,308,2417,156,0002,044,0002,367,488
7Apr 28, 2026 12:0910,48426,717,4988,201,0001,025,0002,367,488
8Apr 28, 2026 12:0910,50126,425,5498,215,0001,026,0002,375,680
9Apr 28, 2026 12:0910,62329,601,6168,311,0001,038,0002,363,392