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 listMay 19, 2026 21:29Josu San MartinJosu San MartinScore: 11,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 21:3311,12719,184,4028,729,0001,063,0002,117,632
2May 19, 2026 21:3311,17121,442,3898,762,0001,069,0002,117,632
3May 19, 2026 21:3311,23520,694,9318,868,0001,019,0002,117,632
4May 19, 2026 21:3311,33419,065,6148,905,0001,069,0002,117,632
5May 19, 2026 21:3311,35719,977,2128,930,0001,065,0002,117,632
6May 19, 2026 21:3311,44621,395,4469,052,0001,021,0002,117,632
7May 19, 2026 21:3311,89419,612,62610,467,00002,117,632
8May 19, 2026 21:3312,13422,006,5259,666,0001,012,0002,117,632
9May 19, 2026 21:3313,76121,213,82211,099,0001,011,0002,113,536