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 23, 2026 22:00Pavel SkripkinPavel SkripkinScore: 135,647Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 22:01133,132138,590,681116,156,0001,001,0002,445,312
2Apr 23, 2026 22:01133,465135,331,601116,447,0001,003,0002,437,120
3Apr 23, 2026 22:01133,496132,280,633116,473,0001,004,0002,428,928
4Apr 23, 2026 22:01133,734134,790,273117,686,00002,441,216
5Apr 23, 2026 22:01135,647131,594,999118,367,0001,003,0002,433,024
6Apr 23, 2026 22:01136,077136,827,056118,742,0001,006,0002,441,216
7Apr 23, 2026 22:01136,084136,464,147117,759,0001,995,0002,433,024
8Apr 23, 2026 22:01136,303135,046,889117,948,0001,999,0002,445,312
9Apr 23, 2026 22:01136,523139,608,352119,140,0001,001,0002,433,024