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 listOct 17, 2026 20:23izotoffizotoffScore: 160,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2026 20:27159,594152,420,697139,438,0001,005,0002,138,112
2Oct 17, 2026 20:27159,846152,390,338139,654,0001,011,0002,142,208
3Oct 17, 2026 20:27160,048152,823,942139,835,0001,008,0002,142,208
4Oct 17, 2026 20:27160,214153,037,875139,984,0001,005,0002,142,208
5Oct 17, 2026 20:27160,247152,934,009140,007,0001,011,0002,138,112
6Oct 17, 2026 20:27160,542152,963,949140,271,0001,006,0002,138,112
7Oct 17, 2026 20:27160,572153,327,451140,299,0001,005,0002,138,112
8Oct 17, 2026 20:27160,614153,139,070140,330,0001,011,0002,142,208
9Oct 17, 2026 20:27160,664153,578,720140,374,0001,011,0002,138,112