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 21, 2026 23:48Josu San MartinJosu San MartinScore: 11,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2026 23:5011,02918,877,1958,689,0001,017,0002,117,632
2May 21, 2026 23:5011,06320,658,3978,734,0001,002,0002,117,632
3May 21, 2026 23:5011,06818,879,0938,729,0001,011,0002,117,632
4May 21, 2026 23:5011,08219,820,3708,746,0001,007,0002,117,632
5May 21, 2026 23:5011,16918,917,1118,751,0001,078,0002,117,632
6May 21, 2026 23:5011,24720,941,6678,893,0001,005,0002,117,632
7May 21, 2026 23:5011,61921,110,2399,172,0001,053,0002,117,632
8May 21, 2026 23:5013,05722,608,82110,488,0001,003,0002,113,536
9May 21, 2026 23:5014,64723,534,93611,881,0001,009,0002,113,536