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 listDec 28, 2022 06:36Yuriy LyfenkoYuriy LyfenkoScore: 39,655Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:3631,09798,182,63127,365,56202,224,128
2Dec 28, 2022 06:3631,25092,749,03327,499,66402,215,936
3Dec 28, 2022 06:3631,289104,891,98827,534,21602,215,936
4Dec 28, 2022 06:3639,50963,550,28733,746,0001,022,0002,379,776
5Dec 28, 2022 06:3639,64965,181,74534,891,00002,269,184
6Dec 28, 2022 06:3639,65264,432,12834,894,00002,375,680
7Dec 28, 2022 06:3639,65563,419,85234,896,00002,269,184
8Dec 28, 2022 06:3639,65860,881,48434,899,00002,371,584
9Dec 28, 2022 06:3639,66062,696,73133,904,000997,0002,387,968
10Dec 28, 2022 06:3639,67363,884,72333,915,000997,0002,269,184
11Dec 28, 2022 06:3639,68061,000,78933,921,000997,0002,379,776
12Dec 28, 2022 06:3639,85761,503,91333,070,0002,004,0002,387,968