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 listNov 26, 2025 12:36aichi-futagawaaichi-futagawaScore: 832,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2025 12:36829,120752,195,337725,629,0003,997,0002,502,656
2Nov 26, 2025 12:36830,300761,444,728728,665,0001,999,0002,498,560
3Nov 26, 2025 12:36832,453761,270,936728,562,0003,997,0002,498,560
4Nov 26, 2025 12:36832,520757,938,508728,621,0003,997,0002,494,464
5Nov 26, 2025 12:36832,808755,143,610729,872,0002,999,0002,502,656
6Nov 26, 2025 12:36834,164756,402,570731,064,0003,000,0002,285,568
7Nov 26, 2025 12:36834,233762,605,944732,125,0002,000,0002,498,560
8Nov 26, 2025 12:36834,516766,274,681730,372,0004,002,0002,285,568
9Nov 26, 2025 12:36835,620761,836,698733,346,0002,000,0002,277,376