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 11:58Dominique GarmierDominique GarmierScore: 10,504Success
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 11:5910,41928,368,6057,132,0002,037,0002,437,120
2Apr 28, 2026 11:5910,43630,769,1589,184,00002,371,584
3Apr 28, 2026 11:5910,47027,787,6918,191,0001,023,0002,371,584
4Apr 28, 2026 11:5910,49724,448,3818,212,0001,026,0002,326,528
5Apr 28, 2026 11:5910,50428,497,5838,217,0001,027,0002,367,488
6Apr 28, 2026 11:5910,50525,805,4958,218,0001,027,0002,326,528
7Apr 28, 2026 11:5910,52527,918,0897,204,0002,058,0002,367,488
8Apr 28, 2026 11:5910,53824,624,2678,244,0001,030,0002,371,584
9Apr 28, 2026 11:5910,61326,617,2918,303,0001,037,0002,363,392