Deutsch   English   Français   Italiano  
<FoGdnfEtJYWlDfL7nZ2dnZfqn_gAAAAA@giganews.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 17 Jun 2024 01:24:08 +0000
Subject: Re: C Non-Programming Non-Challenge
Newsgroups: comp.os.linux.advocacy
References: <17d933d9ffc8ee40$16989$3694546$802601b3@news.usenetexpress.com>
 <17d943beaefb3aa2$16097$2041738$802601b3@news.usenetexpress.com>
 <rPadnWt9mtOO9PP7nZ2dnZfqn_qdnZ2d@supernews.com>
 <ld7lfuF433iU2@mid.individual.net>
 <666f2f33$0$3102233$882e4bbb@reader.netnews.com>
 <ld9ct8F8s0rU5@mid.individual.net>
From: % <pursent100@gmail.com>
Date: Sun, 16 Jun 2024 18:24:08 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:91.0) Gecko/20100101
 Firefox/91.0 SeaMonkey/2.53.18.2
MIME-Version: 1.0
In-Reply-To: <ld9ct8F8s0rU5@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Antivirus: AVG (VPS 240616-2, 2024-6-16), Outbound message
X-Antivirus-Status: Clean
Message-ID: <FoGdnfEtJYWlDfL7nZ2dnZfqn_gAAAAA@giganews.com>
Lines: 40
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-kiyAqnBnXVMzYkCgSzxbifnL5U3v2aEGfveh68hrzGrWIlXQtOVBqVW+HuYrwb98diYd5o29bD3G3Pl!JMTIfoyZ0FnaR/YmtSxMyF0kqiqs5NtIm7FjMNqnHO8nnpsgA+DgzMyyXmfttXZesBSdiT3vOOBV
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 2641

vallor wrote:
>> On 6/16/2024 4:19 AM, vallor wrote:
>>>> On Jun 15, 2024 at 3:20:19 PM EDT, "Farley Flud" <ff@linux.rocks>
>>>> wrote:
>>>>
>>>>> On Sat, 15 Jun 2024 14:29:04 +0000, Farley Flud wrote:
>>>>>
>>>>>
>>>>>> Write a C program to compute the subfactorial of an integer N.
>>>>>>
>>>>>>
>>>>> Nobody got it (as predicted).
>>>>
>>>> Because no one bothered.
>>>
>>> I actually took the opportunity to install the GMP documentation on my
>>> system, look up what a "subfactorial" is, and do an implementation that
>>> works for !N where N is 0 through 50.
>>
>> Where's your code?
> 
> https://github.com/vallor/subfactorial/
> 
> $ ./try_mpz
> 0:1
> 1:0
> 2:1
> 3:2
> 4:9
> 5:44
> 6:265
> 7:1,854
> [...]
> 48:4,566,824,330,931,624,695,767,452,273,778,667,071,025,042,534,230,906,772,538,913
> 49:223,774,392,215,649,610,092,605,161,415,154,686,480,227,084,177,314,431,854,406,736
> 50:11,188,719,610,782,480,504,630,258,070,757,734,324,011,354,208,865,721,592,720,336,801
> 
> (I wrote a function to format the numbers.)
> 
this is not advocacy , you're off topic