This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prime Factor Storm | |
## Demannu 9/29/2014 | |
# 3 -> Pling | |
# 5 -> Plang | |
# 7 -> Plong | |
# If factors aren't 3,5,7 just display the number | |
require 'mathn' | |
class Raindrops | |
def self.convert(toFactor) | |
primeNumbers = [2, 3, 5, 7, 9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, getopt | |
from itertools import izip | |
def main(argv): | |
source = '' | |
target = '' | |
try: | |
opts, args = getopt.getopt(argv,"hs:t:",["source=","target="]) |