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 27, 2026 10:13Pavel SkripkinPavel SkripkinScore: 38,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 10:1438,67649,976,66632,033,0002,002,0002,424,832
2Apr 27, 2026 10:1438,71945,852,14132,069,0002,004,0002,437,120
3Apr 27, 2026 10:1438,92751,621,14833,249,0001,007,0002,428,928
4Apr 27, 2026 10:1438,96451,502,61934,289,00002,322,432
5Apr 27, 2026 10:1438,98850,403,17034,310,00002,424,832
6Apr 27, 2026 10:1438,99854,180,20033,310,0001,009,0002,428,928
7Apr 27, 2026 10:1439,06152,671,65833,363,0001,011,0002,330,624
8Apr 27, 2026 10:1439,11949,714,51333,413,0001,012,0002,428,928
9Apr 27, 2026 10:1439,21550,551,32033,495,0001,015,0002,441,216