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 29, 2026 19:59olliecrowolliecrowScore: 11,745Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 20:0011,67123,642,3689,244,0001,027,0002,433,024
2Apr 29, 2026 20:0011,72030,245,9459,283,0001,031,0002,424,832
3Apr 29, 2026 20:0011,72027,547,5589,283,0001,031,0002,433,024
4Apr 29, 2026 20:0011,73126,357,2739,292,0001,032,0002,457,600
5Apr 29, 2026 20:0011,74526,666,1839,303,0001,033,0002,494,464
6Apr 29, 2026 20:0011,74626,067,1349,304,0001,033,0002,433,024
7Apr 29, 2026 20:0011,76126,888,6609,315,0001,035,0002,424,832
8Apr 29, 2026 20:0011,79425,001,15510,379,00002,428,928
9Apr 29, 2026 20:0011,88621,853,7089,414,0001,046,0002,330,624