Talk:Factors of an integer: Difference between revisions

From Rosetta Code
Content added Content deleted
(added a new section ==task description==)
Line 9: Line 9:
:The task specification needs to be tightened up, so following what was given would most likely fit what was envisaged, but I should have flaagged for clarification. --[[User:Paddy3118|Paddy3118]] 03:19, 16 August 2009 (UTC)
:The task specification needs to be tightened up, so following what was given would most likely fit what was envisaged, but I should have flaagged for clarification. --[[User:Paddy3118|Paddy3118]] 03:19, 16 August 2009 (UTC)
:: If 1 is deemed to be a factor of 42, then so must 42 be; [[wp:Divisor|Wikipedia]] agrees with me. I've never heard of anyone defining factors for anything other than positive integers and in terms of positive integers; if I remember my schooling, it's usually a lead-in to talking about prime numbers. The wikipedia article also talks about "proper divisors", which is what the examples here were originally delivering, but that's probably not the best way to fix this task. --[[User:Dkf|Donal Fellows]]
:: If 1 is deemed to be a factor of 42, then so must 42 be; [[wp:Divisor|Wikipedia]] agrees with me. I've never heard of anyone defining factors for anything other than positive integers and in terms of positive integers; if I remember my schooling, it's usually a lead-in to talking about prime numbers. The wikipedia article also talks about "proper divisors", which is what the examples here were originally delivering, but that's probably not the best way to fix this task. --[[User:Dkf|Donal Fellows]]

==task description==

The first sentence should be "Find the factors of a positive integer.", as the second sentence goes on to define what the factors are of a positive integer, not a number. -- [[User:Gerard Schildberger|Gerard Schildberger]] 04:57, 30 April 2012 (UTC)

Revision as of 04:57, 30 April 2012

Should this be "Basic language learning"? I don't even know. Oligomous 12:10, 15 August 2009 (UTC)

This is a bit too similar to Prime decomposition for my taste. --IanOsgood 15:48, 15 August 2009 (UTC)

The Clojure, Python, Ruby and Tcl examples are all wrong; they omit the number itself which is always a factor (just as 1 is). Oops! --Donal Fellows (not logging in on this computer; don't own it...)

No they are not wrong as such, the task description is very woolly. Do we mean integer factors? What about negative factors? Do we include zero?
The task specification needs to be tightened up, so following what was given would most likely fit what was envisaged, but I should have flaagged for clarification. --Paddy3118 03:19, 16 August 2009 (UTC)
If 1 is deemed to be a factor of 42, then so must 42 be; Wikipedia agrees with me. I've never heard of anyone defining factors for anything other than positive integers and in terms of positive integers; if I remember my schooling, it's usually a lead-in to talking about prime numbers. The wikipedia article also talks about "proper divisors", which is what the examples here were originally delivering, but that's probably not the best way to fix this task. --Donal Fellows

task description

The first sentence should be "Find the factors of a positive integer.", as the second sentence goes on to define what the factors are of a positive integer, not a number. -- Gerard Schildberger 04:57, 30 April 2012 (UTC)