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 18, 2026 23:25Dominique GarmierDominique GarmierScore: 32,982Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 23:2532,84954,101,14127,911,000996,0002,404,352
2Mar 18, 2026 23:2532,91359,445,75927,965,000998,0002,273,280
3Mar 18, 2026 23:2532,94957,321,51026,996,0001,999,0002,404,352
4Mar 18, 2026 23:2532,98262,845,70728,024,0001,000,0002,273,280
5Mar 18, 2026 23:2532,98259,437,61827,023,0002,001,0002,273,280
6Mar 18, 2026 23:2533,00058,617,50827,038,0002,002,0002,273,280
7Mar 18, 2026 23:2533,02353,415,36928,058,0001,002,0002,392,064
8Mar 18, 2026 23:2533,05050,238,82127,079,0002,005,0002,277,376
9Mar 18, 2026 23:2533,18351,520,53128,195,0001,006,0002,273,280