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 listMar 19, 2026 05:53limanjun99limanjun99Score: 24,599Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 05:5324,44447,737,11120,487,0001,024,0002,314,240
2Mar 19, 2026 05:5324,46641,474,18119,480,0002,050,0002,449,408
3Mar 19, 2026 05:5324,51443,616,07219,518,0002,054,0002,469,888
4Mar 19, 2026 05:5324,52645,807,27921,583,00002,449,408
5Mar 19, 2026 05:5324,59941,731,31420,617,0001,030,0002,457,600
6Mar 19, 2026 05:5324,60042,450,00620,618,0001,030,0002,453,504
7Mar 19, 2026 05:5324,86439,058,46019,891,0001,989,0002,289,664
8Mar 19, 2026 05:5324,87745,533,63319,902,0001,990,0002,273,280
9Mar 19, 2026 05:5324,96544,690,65119,972,0001,997,0002,445,312