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 19, 2021 23:30Mikhail ShirokovMikhail ShirokovScore: 7,334,942Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2021 23:307,310,7606,488,335,2776,433,468,87802,260,992
2Sep 29, 2021 19:017,331,9236,529,147,7316,452,092,63002,256,896
3Sep 29, 2021 19:017,334,7016,513,248,6436,454,536,73402,240,512
4Sep 29, 2021 19:017,334,9426,515,455,8886,454,748,74902,256,896
5Nov 19, 2021 23:307,364,7316,535,571,4996,480,963,25802,244,608
6Nov 19, 2021 23:307,387,0956,562,012,9806,500,643,64502,252,800