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 24, 2026 21:38Pavel SkripkinPavel SkripkinScore: 101,496Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 21:38101,163103,864,73687,024,0002,000,0002,330,624
2Apr 24, 2026 21:38101,318103,265,05488,159,0001,001,0002,433,024
3Apr 24, 2026 21:38101,475109,119,53688,295,0001,003,0002,433,024
4Apr 24, 2026 21:38101,496104,846,15688,314,0001,003,0002,330,624
5Apr 24, 2026 21:38101,496104,692,96988,314,0001,003,0002,437,120
6Apr 24, 2026 21:38101,518109,692,30588,333,0001,003,0002,424,832
7Apr 24, 2026 21:38101,565107,740,91188,374,0001,004,0002,326,528
8Apr 24, 2026 21:38101,628107,972,58488,429,0001,004,0002,330,624
9Apr 24, 2026 21:38101,696110,949,11688,488,0001,005,0002,330,624