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 listMar 28, 2026 09:23Dominique GarmierDominique GarmierScore: 10,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2026 09:2310,23929,990,8297,008,0002,002,0002,281,472
2Mar 28, 2026 09:2310,25329,715,0437,018,0002,005,0002,281,472
3Mar 28, 2026 09:2310,30023,503,6507,050,0002,014,0002,375,680
4Mar 28, 2026 09:2310,30928,045,4228,064,0001,008,0002,387,968
5Mar 28, 2026 09:2310,33026,652,2888,080,0001,010,0002,428,928
6Mar 28, 2026 09:2310,39526,012,6427,115,0002,033,0002,433,024
7Mar 28, 2026 09:2310,41927,084,8117,132,0002,037,0002,281,472
8Mar 28, 2026 09:2310,51427,097,2847,196,0002,056,0002,416,640
9Mar 28, 2026 09:2310,56025,386,1037,228,0002,065,0002,420,736