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 listApr 24, 2026 01:36Charles CabergsCharles CabergsScore: 27,255Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 01:3727,15543,478,76120,910,0002,987,0002,531,328stderr
2Apr 24, 2026 01:3727,16141,488,16020,915,0002,987,0002,453,504stderr
3Apr 24, 2026 01:3727,16342,602,36020,916,0002,988,0002,449,408stderr
4Apr 24, 2026 01:3727,25242,470,00719,985,0003,997,0002,531,328stderr
5Apr 24, 2026 01:3727,25544,571,09520,987,0002,998,0002,441,216stderr
6Apr 24, 2026 01:3727,29342,854,76120,015,0004,003,0002,420,736stderr
7Apr 24, 2026 01:3727,31846,549,04321,035,0003,005,0002,416,640stderr
8Apr 24, 2026 01:3727,31946,294,24821,036,0003,005,0002,441,216stderr
9Apr 24, 2026 01:3727,33737,490,47821,050,0003,007,0002,449,408stderr