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 28, 2026 05:43Dominique GarmierDominique GarmierScore: 10,835Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2026 05:4310,67728,647,1238,352,0001,044,0002,449,408
2Mar 28, 2026 05:4310,72224,093,3018,387,0001,048,0002,277,376
3Mar 28, 2026 05:4310,72330,808,4209,436,00002,277,376
4Mar 28, 2026 05:4310,72527,954,6968,390,0001,048,0002,387,968
5Mar 28, 2026 05:4310,83527,879,4697,416,0002,119,0002,392,064
6Mar 28, 2026 05:4310,86923,638,5848,503,0001,062,0002,383,872
7Mar 28, 2026 05:4310,88226,854,6848,512,0001,064,0002,277,376
8Mar 28, 2026 05:4310,90825,474,1098,533,0001,066,0002,277,376
9Mar 28, 2026 05:4310,99826,071,5468,711,000967,0002,277,376