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 listFeb 10, 2026 13:59zielajzielajScore: 3,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 10, 2026 14:013,32421,244,4241,950,000975,0002,408,448
2Feb 10, 2026 14:003,32618,461,1192,927,00002,412,544
3Feb 10, 2026 13:593,32716,317,6781,952,000976,0002,412,544
4Feb 10, 2026 14:013,32719,655,6831,952,000976,0002,400,256
5Feb 10, 2026 13:593,32821,015,5902,929,00002,404,352
6Feb 10, 2026 14:003,32820,010,5681,953,000976,0002,408,448
7Feb 10, 2026 13:593,34120,036,8462,940,00002,416,640
8Feb 10, 2026 14:013,35921,081,9211,971,000985,0002,400,256
9Feb 10, 2026 14:003,50219,171,6482,055,0001,027,0002,510,848