The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#! /usr/local/bin/perl -w

use Quantum::Superpositions UNARY => ['CORE::int'];

sub factors 
{
	eigenstates (int($_[0] / any(2..$_[0]-1)) == ($_[0] / any(2..$_[0]-1)));
}

while (<>)
{
	print int($_), "\n";
	print "factors: ", join(",", factors($_)), "\n";
}