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 20, 2026 12:50Dominique GarmierDominique GarmierScore: 13,793Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 12:5113,66031,696,29510,018,0002,003,0002,379,776
2Apr 20, 2026 12:5113,67229,903,72410,027,0002,005,0002,379,776
3Apr 20, 2026 12:5113,68529,894,04810,036,0002,007,0002,269,184
4Apr 20, 2026 12:5113,78028,729,76010,106,0002,021,0002,379,776
5Apr 20, 2026 12:5113,79331,709,25410,115,0002,023,0002,375,680
6Apr 20, 2026 12:5113,80432,965,02110,124,0002,024,0002,379,776
7Apr 20, 2026 12:5113,85133,926,36310,158,0002,031,0002,371,584
8Apr 20, 2026 12:5113,92524,978,32810,212,0002,042,0002,273,280
9Apr 20, 2026 12:5114,17140,207,36411,432,0001,039,0002,404,352