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 26, 2026 19:43Pavel SkripkinPavel SkripkinScore: 119,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 19:44118,947124,698,127103,668,0001,006,0002,437,120
2Apr 26, 2026 19:44119,290123,905,457102,977,0001,999,0002,416,640
3Apr 26, 2026 19:44119,326118,455,480103,007,0002,000,0002,490,368
4Apr 26, 2026 19:44119,397121,965,254103,069,0002,001,0002,424,832
5Apr 26, 2026 19:44119,410119,292,367103,080,0002,001,0002,437,120
6Apr 26, 2026 19:44119,587123,740,555105,237,00002,433,024
7Apr 26, 2026 19:44119,647120,767,222104,288,0001,002,0002,437,120
8Apr 26, 2026 19:44119,685120,572,753104,320,0001,003,0002,433,024
9Apr 26, 2026 19:44119,747122,884,683104,375,0001,003,0002,428,928